Complete deployment information
This commit is contained in:
parent
10ad679b4d
commit
9f0a81152f
1 changed files with 36 additions and 17 deletions
|
|
@ -83,22 +83,41 @@ properly unless the separate model validation is in place.
|
||||||
Deployment
|
Deployment
|
||||||
----------
|
----------
|
||||||
|
|
||||||
- unpack the project
|
To prepare your computer to run Debshots 2.x either for development
|
||||||
- install Ruby 2.0.0 via rvm (see rvm.io)
|
or production you need to…
|
||||||
- sudo apt-get install libbz2-dev libpq-dev
|
|
||||||
- sudo apt-get install postgresql
|
- unpack the project onto your disk somewhere
|
||||||
- set /etc/postgres/.../pg_hba.conf:
|
- install Ruby 2.0.0 via rvm (see http://rvm.io/)
|
||||||
local all all md5
|
- install the library header packages so that the required Ruby gems
|
||||||
- sudo su - postgres
|
can be compiled:
|
||||||
|
sudo apt-get install libbz2-dev libpq-dev
|
||||||
|
- install a PostgreSQL database:
|
||||||
|
sudo apt-get install postgresql
|
||||||
|
- edit the PostgreSQL authentication configuration at
|
||||||
|
/etc/postgres/.../pg_hba.conf to allow password-based logins
|
||||||
|
from localhost. Change the line starting with *local* to read:
|
||||||
|
local all all md5
|
||||||
|
- create a user and databases
|
||||||
|
- sudo su - postgres
|
||||||
- createuser -s -P debshots
|
- createuser -s -P debshots
|
||||||
- createdb debshots
|
- createdb debshots
|
||||||
|
- for development only:
|
||||||
|
- sudo su - postgres
|
||||||
- createdb debshots_dev
|
- createdb debshots_dev
|
||||||
- createdb debshots_test
|
- migrate the data from the Debshots 1.x based production server:
|
||||||
- bin/get-data-from-old-live-server.sh
|
- bin/get-data-from-old-live-server.sh
|
||||||
- gem install bundle
|
- install all Ruby gems required to run the application:
|
||||||
- bundler
|
- gem install bundle
|
||||||
- RAILS_ENV=development rake db:migrate
|
- bundler
|
||||||
- RAILS_ENV=test rake db:migrate
|
- run database migrations for development
|
||||||
- RAILS_ENV=production rake db:migrate
|
- RAILS_ENV=development rake db:migrate
|
||||||
- RAILS_ENV=production rake assets:precompile
|
- import long description information for the packages into development database
|
||||||
- RAILS_ENV=production rails s
|
- RAILS_ENV=development rake debshots:update_longdescription_from_deb_repos
|
||||||
|
- run database migrations for production
|
||||||
|
- RAILS_ENV=production rake db:migrate
|
||||||
|
- RAILS_ENV=production rake debshots:update_longdescription_from_deb_repos
|
||||||
|
- import long description information for the packages into production database
|
||||||
|
- prepare the static assets (CSS, JS) for production
|
||||||
|
- RAILS_ENV=production rake assets:precompile
|
||||||
|
- run the production web server
|
||||||
|
- RAILS_ENV=production rails s
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue