Deploy your Node.js app

Before you deploy, make sure you have set up an example Node.js app.

Find the name of your app

Find the ID of your account:

sectionctl accounts

The output will look something like this:

| ACCOUNT ID | ACCOUNT NAME                      |
| 1335       | |

Note the number value in the account ID column – we’re about to use it to list applications you have access to:

sectionctl apps list --account-id 1335

The output will look something like this:

| APP ID |    APP NAME                       |
| 7171   | |

The application name was automatically generated for you when you signed up.

Note the name of the application that is returned – you are going to use it in the final steps.

Set up the SSL certificate for your domain

Section provides SSL certificates for your apps for free.

To set up this up so your app is available, run:

sectionctl certs renew --account-id 1335 --hostname

(make sure to substitute your account ID and domain when you run this command)

Deploy your app

Now your app is ready to deploy:

sectionctl deploy --account-id 1335 --app-id 7171

(make sure to substitute your account and app IDs when you run this command)

This will take a few minutes to upload and deploy your Node.js app to Section’s edge.

View your app running on Section

Plug the app name you saw above into your browser, and you should see your app running.

Node.js Edge App Hosting is a new Section product, so it may have some rough edges. If you see something that needs improvement, we’d love to hear your feedback.