Todo... add some description of the app and the company
cp config/env_config_example.yml config/env_config.yml
cp config/database_example.yml config/database.yml
# edit your database.yml
bundle install
rake db:create db:migrate db:seed
rails s
Todo: add the staging and production ips...
- create deployer user and generate a key
ssh root@your-server-ip
adduser deployer --ingroup sudo
vi /etc/ssh/sshd_config
# PasswordAuthentication no
su deployer
mkdir ~/.ssh/
sudo cp /root/.ssh/authorized_keys ~/.ssh/
sudo chown deployer:sudo ~/.ssh/authorized_keys
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub
- Copy paste the content of that file (id_rsa.pub) and update your project settings on github:
https://github.com/smashingboxes/angular-rails/settings/keys
-
Edit the config/deploy.rb with the correct settings
-
Run:
cap deploy:install
cap deploy:setup
# edit shared/config/env_config.yml on the server
cap deploy:cold
cap deploy
This will fetch the latest from github
see cap -T
Example:
cap unicorn:stop unicorn:start
If you change the ip of a server but not its name you might get such warning. To get rid of it, use
ssh-keygen -R old_ip
Make sure you have your user using bash shell and that there is a home folder with a bashrc file. This is really only a problem if you created your deployer user manually (not using the above command)