Deployment notes added.

This commit is contained in:
Christoph Haas 2015-05-02 11:37:14 +02:00
parent 6cd34f49a4
commit bd03b76273

View file

@ -77,3 +77,28 @@ end
A separate validation in the Screenshots model has been implemented already.
This unique constraint would raise an error and not trigger a validation error
properly unless the separate model validation is in place.
--
Deployment
----------
- unpack the project
- install Ruby 2.0.0 via rvm (see rvm.io)
- sudo apt-get install libbz2-dev libpq-dev
- sudo apt-get install postgresql
- set /etc/postgres/.../pg_hba.conf:
local all all md5
- sudo su - postgres
- createuser -s -P debshots
- createdb debshots
- createdb debshots_dev
- createdb debshots_test
- bin/get-data-from-old-live-server.sh
- gem install bundle
- bundler
- RAILS_ENV=development rake db:migrate
- RAILS_ENV=test rake db:migrate
- RAILS_ENV=production rake db:migrate
- RAILS_ENV=production rake assets:precompile
- RAILS_ENV=production rails s