Skip to content

Deploying your Web Sites/Apps to Heroku

Original guide · All levels

With Wappler you can easily deploy your web site and apps to Heroku with a single click. What is Heroku? Heroku is a cloud platform as a service supporting several programming languages. One of the fi

With Wappler you can easily deploy your web site and apps to Heroku with a single click.

Section titled “With Wappler you can easily deploy your web site and apps to Heroku with a single click.”

With Wappler you can easily deploy your web site and apps to Heroku with a single click.

Heroku is a cloud platform as a service supporting several programming languages. One of the first cloud platforms, Heroku has been in development since June 2007, when it supported only the Ruby programming language, but now supports Java, Node.js, Scala, Clojure, Python, PHP, and Go.

In our example we will show you how to use NodeJS with Heroku.

In order to use Heroku with Wappler you need to setup an account and then create your project.

The first step is to create an account (it’s free) on Heroku website. Go to: https://www.heroku.com/ and click the Sign Up For Free button:

The next step is to create your app. Log in with your newly created account and click Create new app button:

Add a name for your app. It will be used to access your app like: https://your-app-name.herokuapp.com/:

Section titled “Add a name for your app. It will be used to access your app like: https://your-app-name.herokuapp.com/:”

Open the Project Manager:

Select New Project tab and create a new blank project:

Section titled “Select New Project tab and create a new blank project:”

Open the Hosting Type menu and select Heroku Hosting:

Section titled “Open the Hosting Type menu and select Heroku Hosting:”

Then open the Server Model menu and select NodeJS:

Section titled “Then open the Server Model menu and select NodeJS:”

Enter your Heroku Project name here. If you don’t know what is it, you can click the Manage Heroku Apps button:

It will open your Heroku projects in the browser, so you can check your project name:

Section titled “It will open your Heroku projects in the browser, so you can check your project name:”

You are done. Your new project is ready, it will ask you to deploy to Heroku - select yes:

Section titled “You are done. Your new project is ready, it will ask you to deploy to Heroku - select yes:”

Then you will see a message, saying you need to log in - select yes:

Section titled “Then you will see a message, saying you need to log in - select yes:”

The terminal opens asking you to press any key, so click inside the terminal and press any key:

Section titled “The terminal opens asking you to press any key, so click inside the terminal and press any key:”

This will open your browser, where you will see a Log In button. Click it:

Section titled “This will open your browser, where you will see a Log In button. Click it:”

You will see a success message, when you are logged in:

Section titled “You will see a success message, when you are logged in:”

Close the browser window and go back to Wappler. The Commit dialog appears - enter your comment and version, then click Commit:

Wappler automatically creates 2 targets for your project - development and production. The development target points to a local NodeJS server and the production target points to your Heroku project.

You can see the targets by clicking the project settings icon:

When you are done setting up your page(s) and preview them on your development target you can then switch to the Production target and deploy your project.

Open the Targets menu, then select Production:

The commit dialog appears. Enter your comment and version, then click the Commit button:

Section titled “The commit dialog appears. Enter your comment and version, then click the Commit button:”

Your app has been uploaded to Heroku and you can preview it in your browser:

Section titled “Your app has been uploaded to Heroku and you can preview it in your browser:”