-
Notifications
You must be signed in to change notification settings - Fork 4
Installation Guide
Vera Clemens edited this page Apr 2, 2019
·
15 revisions
-
RVM installieren (http://rvm.io)
-
Ruby 2 installieren mit Hilfe von RVM (bei mir 2.0.0p247)
-
Rails 4 installieren („gem install rails“ im terminal)
-
Postgres installieren mit Homebrew (http://www.moncefbelyamani.com/how-to-install-postgresql-on-a-mac- with-homebrew-and-lunchy)
-
Postgres Server starten
- entweder mit Hilfe von lunchy
- oder mit „pg_ctl start -D ~/postgres/„
-
In database.yml Konfigurationseinstellungen nachlesen
-
Im Terminal:
- User wechseln zu postgres:
sudo su - postgres
- Postgres Command Line starten:
psql
- Postgres Benutzer anlegen:
create user postgres \password=DEINPASSWOR
- das Passwort muss in die database.yml übernommen werden
- Databases „hpi_hiwi_portal_development“ und „hpi_hiwi_portal_test“ mit Owner „postgres“ anlegen
- bundle install
- mit homebrew imagemagick installieren
- rake db:migrate
- rake db:seed
- rails s
- User wechseln zu postgres:
-
hoffen dass alles funktioniert
-
app müsste jetzt unter localhost:3000 laufen