Multi-Computer collaboration on one ROR project

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.

But when you use multi-computer to do it,you may catch these issues:

- 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

You should run the command-bundle install and rake db:migrate to install all the gems and make the database is correct.

- when you want to deploy the project to heroku,you may do like this:

gem install heroku

heroku keys:add

heroku create --stack cedar

git push heroku master

heroku open

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

你可能感兴趣的:(Multi-Computer collaboration on one ROR project)