Skip to content

GEVER Portal: Lokale Entwicklung

Lukas Graf edited this page Feb 1, 2016 · 1 revision

GEVER-Portal installieren

gever-portal klonen

cd ~/src
git clone git@github.com:4teamwork/gever-portal.git
cd gever-portal
Ggf. benötigte Ruby-Version installieren:
rbenv version
# rbenv: version `2.2.3' is not installed
rbenv install 2.2.3
# ruby-build: definition not found: 2.2.3
Ggf. erst ruby-build plugin updaten:
cd ~/.rbenv/plugins/ruby-build/
git pull
cd -
rbenv install 2.2.3

Bundler installieren, gever-portal bundle installieren

gem install bundler
bundle --without oracle

PostgreSQL DB für casino anlegen

createdb portal_casino_development

DB Schema erzeugen

bin/rake db:migrate

Portal konfigurieren

cp .env.local.production-sample .env.local
vim .env.local
Beispiel für minimale Konfiguration:
CASINO_DATABASE=portal_casino_development
OGDS_ADAPTER=postgresql
OGDS_DATABASE=opengever

Pow installieren - gemäss http://pow.cx/

curl get.pow.cx | sh
cd ~/.pow
ln -s /Users/src/gever-portal

http://gever-portal.dev sollte im Browser erreichbar sein.