_ Prerequisite
_ Install&Setup
_ Prepare Heroku's development environment
- Step.1
- Access to Heroku's web site.
- Step.2
- Login the system.
- Step.3
- Click the Ruby's icon, and you will see the instruction how to install Heroku Toolbelt.
- Step.4
- Download Heroku Toolbelt from the link in web page.
_ HowToUse
_ Create rails project
- Step.1
- Login to Heroku server.
$ heroku login
- Step.2
- Change directory of your application which uses PostgreSQL not Sqlite.
(You can refer HowToCreate/RubyOnRails/4.2/PostgreSQL/9.3 about how to create Rails Application with )
- Step.3
- Create new project in Heroku space.
$ heroku create
- Step.4
- Deploy the sample project to Heroku server.
$ git init
$ git add .
$ git commit -m "initial check-in"
$ git push heroku master
Then you will see the following window from the URL displayed in the terminal.
- Step.5
- Migrate database
$ heroku run rake db:migrate
Then you can access your application as expected. You can create record to the database in Heroku server.
_ Author
S.Yatsuzuka