So first thing is first:
- Sign up for Heroku! No cost and only a minimum amount of forms to wade through makes this is one low barrier of entry.
- Grab the Heroku Toolbelt for your operating system. This little command line tool provides a powerful utility for managing your instances.
- Download Git if you don’t already have it. This is used to push your changes to Heroku. Due to wide range of options and preferences, I can’t give a one-size-fits-all recommendation. I am going to assume that you can access your Git tool for the command line for the rest of the post.
- Download my server app from github. Simply open your command line and navigate to where ever you want to put the folder, then run
git clone firstname.lastname@example.org:Bobnix/static-nodeku.git
- Navigate to the static-nodeku directory you just created.
heroku loginand login with your account credentials.
heroku create. This will create an instance in heroku and set up the related Git information for you. It will spit out a phrase in the form of WORD-WORD-NUMBER. Take note of this phrase.
git push heroku master. This pushes the code from your computer to heroku.
Thats it! You now have a live site, let’s take a look at it by going to
Well, that is a bit bare. Lets fix that. Because there are so many ways to go about doing this, actually making the site will depend heavily on how you are comfortable working. I personally use Notepad++ or Sublime on windows. Some of the more seasoned may breakout VIM or Emacs. Others may turn to WISIWYG editors. The only rule (for now) is that your site stays contained within the site folder in the server app.
Once you are done with your edits:
- Commit your changes by running
git add .then
git commit -a -m "YOUR MESSAGE HERE"
git push heroku masteragain.
- After a few seconds, verify your changes.
If all goes well, your site should reflect your changes. Keep revising untill you are satisfied, there is no penalty for the indecisive. The third and final post will go into some more optional pieces. If you don’t feel like registering a domain name (that will cost money), feel free to spread the link to where ever you want it to appear.