If you want to develop one project in multi-computer,you can use github to storage your code and use heroku to deploy the project to internet. git
But when you use multi-computer to do it,you may catch these issues: github
- one computer push code to github,then in the other computer,you pull the code,but when you want to run it in the native,so you maybe try "rails s" to start the web server,but you will catch an error web
You should run the command-bundle install and rake db:migrate to install all the gems and make the database is correct. this
- when you want to deploy the project to heroku,you may do like this: spa
gem install heroku code
heroku keys:add server
heroku create --stack cedar terminal
git push heroku master get
heroku open it
do like is all right,but you maybe get a error,that the browser show 「We're sorry, but something went wrong.」
You should run the command in the terminal first:
heroku run bundle exec rake db:migrate
then run the command:heroku open
the browser will give the right show.
Thanks,
Blues