1. sudo gem install heroku
2. heroku create myapp
http://myapp.heroku.com/ | git@heroku.com:myapp.git
3. rails myapp -d mysql
git init
git add .
git commit -am 'initial import'
4. git remote add heroku git@heroku.com:myapp.git
git push heroku master
5. heroku rake db:migrate
6. heroku open
7. that's it
8. more about on [url]http://heroku.com[/url]
2. heroku create myapp
http://myapp.heroku.com/ | git@heroku.com:myapp.git
3. rails myapp -d mysql
git init
git add .
git commit -am 'initial import'
4. git remote add heroku git@heroku.com:myapp.git
git push heroku master
5. heroku rake db:migrate
6. heroku open
7. that's it
8. more about on [url]http://heroku.com[/url]
本文介绍了一种将Ruby on Rails应用程序部署到Heroku平台的方法。主要包括安装必要组件、创建Heroku应用、初始化Git仓库、推送代码到Heroku远程仓库及数据库迁移等步骤。
88

被折叠的 条评论
为什么被折叠?



