Deploying rails app to heroku from scratch
Sign Up for Heroku account – At heroku.com
If you already have an account, sign in.
Create an new app
Give your app a name. Make sure the app name is available on Heroku.
Create a new Git repository
Initialize a git repository in a new or existing directory
srinidhigs@code$ cd Blog/ srinidhigs@Blog$ git init Initialized empty Git repository in /Users/srinidhigs/Desktop/Srinidhi/code/Blog/.git/ srinidhigs@Blog (master)$
Heroku Login from Terminal
srinidhigs@Blog (master)$ heroku login Enter your Heroku credentials: Email: srini.satti@gmail.com Password: ************* Logged in as srini.satti@gmail.com srinidhigs@Blog (master)$
Add heroku remote to your app
srinidhigs@Blog (demo-branch)$ heroku git:remote -a techenthu-demo set git remote heroku to https://git.heroku.com/techenthu-demo.git srinidhigs@Blog (demo-branch)$
Commit your code to the repository and deploy it to Heroku using Git.
$ git add . $ git commit -m "your-commit-message"
Push your code to Git repository
$ git push origin demo-branch
! important
Heroku does not support sqlite3 which is rails default database.
So Please remove sqlite3 from gemfile and use Postgres or mysql.
Preferably Postgres and make necessary changes in database.yml file
gem 'sqlite3'gem 'pg'
Deploy your application
this is to deploy master branch
$ git push heroku master
or
this is to deploy specific branch
$ git push heroku demo-branch:master
Existing Git repository
For existing repositories, simply add the heroku remote
$ heroku git:remote -a techenthu-demo
Open app in heroku
$ heroku open
I have noticed that your website needs some fresh articles.
Writing manually takes a lot of time, but there is
tool for this boring task, search for; Wrastain’s tools for content
Sure. Will use this. Thanks for your feedback.
I think your page needs some fresh posts. Writing manually
takes a lot of time, but there is tool for this boring task,
search for; Boorfe’s tips unlimited content
Hello blogger, i must say you have hi quality posts here.
Keep posting.