Forked from https://github.com/sarveshpro/n8n-heroku and https://github.com/UnlyEd/n8n-heroku-demo
This is a Heroku focused container implementation for n8n. Just connect your fork of this repo to heroku and let it work its charm!
- Updated node.js and n8n versions in Dockerfile
- Updated app.json to address some bugs.
- Fork the repo then make version or config changes.
- You can change the following variables in the UI (or in app.json before deploying to Heroku)
- Change user name and password from the default user/pass.
- Generate a random string for N8N_ENCRYPTION_KEY value and replace the placeholder . This prevents a credentials error each time you fire up n8n. Details. Random string generator: https://www.random.org/strings/?mode=advanced
- Update WEBHOOK_TUNNEL_URL to match your heroku app url. The format is usually "your-app-name.herokuapp.com". This fixes the problem with webhook urls generated with "localhost" instead of your domain name. More info here: sarveshpro/n8n-heroku#16 (comment)
- Click the "Deploy to Heroku" button, log in, configure the app and environment variables (if you haven't done it in app.json). The app will be ready to launch in about 5 minutes.
If you're using the free/hobby plan, your app will go to sleep in about 20 minutes. You won't lose any data and it will take around 10-20 seconds to wake back up. If you want to run timed workflows, you can use a service like https://cron-job.org to wake up your app whenever you need it. When you're using an external cron job, you won't need the Cron node inside n8n. I use a webhook instead.
n8n is a fair code, workflow automation tool that allows you to connect any API with another, without having to do much coding. Think of it as Zapier on steroids, without the price tag. They also have a fully managed cloud version that's extremely affordable. This heroku build is great for evaluating n8n, sharing workflows with team members and getting to know the internals, but I'd encourage you to sign up and support n8n once you're done testing (I'm not an affiliate, just a fan.)