This document is not up-to-date, please refer to the Japanese document.

Deploying to Heroku

This page covers Heroku deploys. A Heroku deploy is the ability to deploy a flow created in enebular to an enebular Node-RED on Heroku.

Note: Heroku applications created in enebular version 2.25.3 or below can no longer be used as of November 10, 2020.Please refer to “How to Recreate Heroku Applications to Correspond with the Removal of Heroku mLab MongoDB Add-on” and recreate Heroku applications, as necessary.

Creating the Flow to Send to Heroku

Heroku-index-createflow

First, create a new flow from "Assets".

image

Create the flow you want to send to Heroku, and then deploy it to save it.

Heroku-index-deploybutton

Deploy Settings

Configure your flow deployment by clicking on Deploy.

otherEnvDeploy

Click on the "Add Connection".

addConnection

Select "Heroku" for "Select Connection Type".

Input a "Connection Name". Get the "Heroku API Token" from the Heroku settings screen.

selectHeroku

Creating an app with the Heroku Button

accountSettings

Go to "Account" on the "Manage Account" page.

account

Go to the API Key section and display the API Key with "Reveal".

revealApikey

Copy the API Key into "Heroku API Token" and click "Save".

inputAPIkey

Click created connection.

createdConnection

We can create a Heroku app from the "Deploy to Heroku" button on the bottom.

herokuButton

Creating an app with the Heroku Button

Use the Heroku button to create the app. This step can be skipped for those who have already created one.

loginHeroku

After clicking on the Heroku button, if not logged in, log in with the Heroku login screen that appears.

herokuSetting

Heroku The Heroku app settings will be displayed.

appName

Set the USERNAME and PASSWORD to be used for login after the enebular Node-RED has been created. Please do not change the value of AGENT_HEROKU_VERSION.

userName

After confirming the settings press the "Deploy" button.

deployApp

If you haven't added your credit card information to heroku before, the following modal will show up. Using the Enebular app is free so one needs to not worry about Enebular charging.

creditCard

After registering the credit card, heroku will start setting up the app.

creatingHeroku

The app is being created...

doneCreated

Once it has been created click the "View" button to check it.

agentOnHeroku

You'll be asked to provide the USERNAME and PASSWORD to log into the enebular Node-RED, so enter those that you set above.

Deploying

With the connection saved and Heroku selected as a "Connection Type", a list of the apps on the Heroku account should be displayed. From here, select the Heroku application you just created and press "Deploy".

appList

Wait a moment for the "Deploy Added" to be displayed to confirm the app has been deployed.

If you check the Heroku app you will be able to see that the flow has been deployed.

openApp

Check the Heroku app to see if the flow has been deployed.

confirmDeployed

results matching ""

    No results matching ""