Deployment notes added.
This commit is contained in:
parent
6cd34f49a4
commit
bd03b76273
1 changed files with 25 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue