/ask-ruby

An idea project of Q&A site use ruby implementation.

Primary LanguageRubyMIT LicenseMIT

Code Climate

ask-ruby

An idea project of Q&A site use ruby implementation.

Introduction

Development Mode

###Load Sample Data

rake db:drop
rake db:seed

##Production Mode

###Deploy to EC2

#ssh without password
cat ~/.ssh/id_rsa.pub | ssh -v -i ~/.ssh/xxx.pem ubuntu@ip_address 'cat >> ~/.ssh/authorized_keys'

git checkout master
#There is new machine do the scripts as following
cap deploy:install
cap deploy:setup
cap deploy:cold

#When there is any code update, you can run the following command to redeploy the new version.
cap deploy