![Toolbelt Toolbelt](/uploads/1/2/9/2/129215934/552809723.png)
Note: Installations to Heroku require a local machine with some flavour of unix, as NodeBB does not run on Windows.
The Heroku Toolbelt is a package of the Heroku CLI, Foreman, and Git — all the tools you need to get started using Heroku at the command line. The Toolbelt is available as a native installer for OS X, Windows, and Debian/Ubuntu Linux. The Toolbelt has been available since last fall as part of our polyglot platform.Since then it's matured substantially with a huge amount of user testing,. After installing Heroku toolbelt in Mac OS X terminal sometimes it’s showed given error.
- Download and install Heroku Toolbelt for your operating system
- Log into your Heroku account:
herokulogin
- Verify your Heroku account by adding a credit card (at http://heroku.com/verify). Required for enabling Redis To Go Add-on.
- Clone the repository:
gitclone-bv1.5.xhttps://github.com/NodeBB/NodeBB.git/path/to/repo/clone
cd/path/to/repo/clone
- Install dependencies locally
npminstall--production
- Create the heroku app:
herokucreate
- Enable Redis To Go for your heroku account (Nano is a free plan):
herokuaddons:createredistogo:nano
- Run the NodeBB setup script:
nodeapp--setup
(information for your Heroku server and Redis to Go instance can be found in your account page)- Your server name is found in your Heroku app’s “settings” page, and looks something like
adjective-noun-wxyz.herokuapp.com
- Use any port number. It will be ignored.
- Your redis server can be found as part of the redis url. For example, for the url:
redis://redistogo:[email protected]:12345/
- The server is
fishyfish.redistogo.com
- The port is
12345
- The password is
h28h3wgh37fns7
- Your server name is found in your Heroku app’s “settings” page, and looks something like
- Create a Procfile for Heroku:
echo'web:nodeloader.js--no-daemon'>Procfile
- Commit the Procfile:
- Push to heroku:
gitpush-uherokuv1.5.x:master
* Ensure that a proper SSH key was added to your account, otherwise the push will not succeed! - Initialise a single dyno:
herokups:scaleweb=1
- Visit your app!
Heroku Tool Belt Download Mac Installer
If these instructions are unclear or if you run into trouble, please let us know by creating a topic on the Community Support Forum.
Keeping it up to date¶
If you wish to pull the latest changes from the git repository to your Heroku app:
Heroku Cli Download Mac
- Navigate to your repository at
/path/to/nodebb
gitpull
npminstall
nodeapp--upgrade
gitcommit-am'upgradingtolatestnodebb'
gitpush