From bd03b7627347cf963522df05954bf394837a07e7 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sat, 2 May 2015 11:37:14 +0200 Subject: [PATCH] Deployment notes added. --- README.Developer | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.Developer b/README.Developer index f5cb03b..2646416 100644 --- a/README.Developer +++ b/README.Developer @@ -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