This was created by Thupten Nyima github.com/vajradog Mockup link - pho.to/6GJq7
-
Make sure you have rails version 4. Type “rails -v” to make sure.
-
From this project directory, do “bundle install –without production”
-
To start the server “rails server”.
-
Navigate your browser to localhost:3000.
-
Instantiate this directory as a git repository with “git init”.
-
Go to github.com, create a new repository, then follow instructions on how to add a remote repository that links to github.
-
Remember, you have to “git add” changes to ready it for a commit, then “git commit” to commit those changes locally, then “git push origin master” to push it to the remote “origin” repository, which is the previously created github.com repository.
-
Download the Heroku Toolbelt.
-
Go to Heroku.com and register.
-
Issue “heroku login” to authenticate, with the credentials from previous step. Make sure it’s a git repository, by issuing “git init”, and also “git add”, “git commit” your files.
-
Then “heroku create” to create this app on heroku. This command also adds a “heroku” remote repository that you can push to.
-
To deploy, issue “git push heroku master”.
-
You may need to run migrations on heroku afterwards, with “heroku run rake db:migrate”.
-
Other helpful heroku commands:
- heroku logs - heroku logs -t - heroku rename - heroku restart - heroku run console - heroku help