PDigital is a NewsPaper platform built on ruby on rails
Deploy to development
In the mean time we are not capistrano based deploy the steps for deploying:
-
Set the enviroment variable in .bashrc
export RAILS_ENV=production
-
Clone the code in the server
git clone https://github.com/pekpon/pdigital.git
-
Install all the gems using bundler
bundle install
-
Set database
Change your
config/database.yml
to set your needs -
Run the db setup
rake db:setup
-
This is prepared to being used with assets pipelines so we need to precomplile the assets
rake assets:precomplile
-
We're using thin as server:
bundle exec thin -s 3 -R config.ru -e production -d start
This sets 3 thin server on 3000, 3001, 3002.
The -e param is optional if you already set up your ENVTo Restart
To restart the severs one by one to non stop the system just need tobundle exec thin -s 3 -R config.ru -e production -d -w120 -O restart