> ## Documentation Index
> Fetch the complete documentation index at: https://forest-docs-prd-616-workflow-webhook-trigger.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy your admin backend on Heroku

This tutorial is designed to assist people who want to have a step-by-step guide to deploy the Lumber-generated admin backend to Heroku.

If you don’t have a Heroku account yet, [sign up here](https://signup.heroku.com/). Then, create your first Heroku application **(1)** **(2)**.

<img src="https://mintcdn.com/forest-docs-prd-616-workflow-webhook-trigger/koibf_Mx9-wbnVB9/images/legacy/javascript-agents/deploy%20heroku.png?fit=max&auto=format&n=koibf_Mx9-wbnVB9&q=85&s=1e0fe67cbb1e8d7816ea089801e00001" alt="" width="1456" height="766" data-path="images/legacy/javascript-agents/deploy heroku.png" />

<img src="https://mintcdn.com/forest-docs-prd-616-workflow-webhook-trigger/7CReagZK6gkpGoy9/images/legacy/javascript-agents/deply%20heroku%202.png?fit=max&auto=format&n=7CReagZK6gkpGoy9&q=85&s=b7a6d291a040a264db496461bff06bdc" alt="" width="1336" height="942" data-path="images/legacy/javascript-agents/deply heroku 2.png" />

After creating your application, simply follow the Heroku guide “Deploy using Heroku Git” to push the lumber-generated admin backend code to the Heroku application.

<img src="https://mintcdn.com/forest-docs-prd-616-workflow-webhook-trigger/koibf_Mx9-wbnVB9/images/legacy/javascript-agents/deploy%20heroku%203.png?fit=max&auto=format&n=koibf_Mx9-wbnVB9&q=85&s=2a908575a2b275cb7662aa4c44ca47b4" alt="" width="1440" height="1606" data-path="images/legacy/javascript-agents/deploy heroku 3.png" />

Push your code using the following command:&#x20;

### Command line

```bash theme={null}
git push heroku master
```

### Output

```
Counting objects: 25, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (20/20), done.
Writing objects: 100% (25/25), 21.56 KiB | 5.39 MiB/s, done.
Total 25 (delta 9), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
remote:
remote: -----> Creating runtime environment
remote:
remote:        NPM_CONFIG_LOGLEVEL=error
remote:        NODE_VERBOSE=false
remote:        NODE_ENV=production
remote:        NODE_MODULES_CACHE=true
remote:
remote: -----> Installing binaries
remote:        engines.node (package.json):  unspecified
remote:        engines.npm (package.json):   unspecified (use default)
remote:
remote:        Resolving node version 8.x...
remote:        Downloading and installing node 8.11.4...
remote:        Using default npm version: 5.6.0
remote:
remote: -----> Restoring cache
remote:        Skipping cache restore (not-found)
remote:
remote: -----> Building dependencies
remote:        Installing node modules (package.json + package-lock)
remote:        added 246 packages in 7.72s
remote:
remote: -----> Caching build
remote:        Clearing previous node cache
remote:        Saving 2 cacheDirectories (default):
remote:        - node_modules
remote:        - bower_components (nothing to cache)
remote:
remote: -----> Pruning devDependencies
remote:        Skipping because npm 5.6.0 sometimes fails when running 'npm prune' due to a known issue
remote:        https://github.com/npm/npm/issues/19356
remote:
remote:        You can silence this warning by updating to at least npm 5.7.1 in your package.json
remote:        https://devcenter.heroku.com/articles/nodejs-support#specifying-an-npm-version
remote:
remote: -----> Build succeeded!
remote: -----> Discovering process types
remote:        Procfile declares types     -> (none)
remote:        Default types for buildpack -> web
remote:
remote: -----> Compressing...
remote:        Done: 24.2M
remote: -----> Launching...
remote:        Released v3
remote:        https://lumber-deploy-to-production.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/lumber-deploy-to-production.git
 * [new branch]      master -> master
```

<Check>
  Your admin backend is now deployed in a remote Heroku application. 🎉
</Check>

The last step to have a complete running application is to deploy a database remotely.&#x20;

For this, you can follow our [Populate a remote database](/legacy/javascript-agents/how-tos/databases/populate-a-postgresql-database-on-heroku) how-to.

<Warning>
  This does **not** mean your project is deployed to production on Forest. To deploy to production, check out [Environments](/product/process/advanced-concepts/developer-workflow/environments-and-branches) after you've completed the above steps.
</Warning>
