Using Heroku to put an istance online

Hi! I was wondering if there’s already a way to setup a app on heroku to run an instance? I’d love to put my instance there so I can play around from wherever I am.

Yes, there definitely is. Sadly however have I never used Heroku. When I find some time I try to look into it. If not somebody who has more experience answers here first.

1 Like

Great to know! I’m running everything locally for now maybe I can look into setting up with heroku during the weekend =) Will keep this thread updated!

Great! Thanks a lot!

1 Like

@jtemporal Did you manage to test on Heroku?
cc: @neuromancer1729

I tried to follow: Building Docker Images with heroku.yml | Heroku Dev Center

I have a successful build, but am getting application error when trying to run the app.

I’m using Heroku Postgres for DB and adding all env variables in the config vars.

I added heroku.yml on the root dir with the following contents:

build:
  docker:
    web: docker/images/n8n/Dockerfile
  config:
    N8N_VERSION: 0.43.0
    PORT: 443
run:
  web: bundle exec puma -C config/puma.rb

The app crashes immediately on load.

Here’s log caught by Papertrail, right after the app crashes.

Apr 10 16:24:46 State changed from crashed to starting
Apr 10 16:24:55 Starting process with command /bin/sh -c bundle\ exec\ puma\ -C\ config/puma.rb
Apr 10 16:24:57 State changed from starting to crashed
Apr 10 16:24:57 Process exited with status 1
Apr 10 16:24:57 [WARN tini (3)] Tini is not running as PID 1 and isn’t registered as a child subreaper.
Apr 10 16:24:57 Zombie processes will not be re-parented to Tini, so zombie reaping won’t work.

I’m having same problem - and I’ve already described it here. Linking instead of posting duplicate content.

Is the goal here to have a hosted instance of n8n in the cloud or do you wish to specifically wish to utilise something within the Heroku environment? ie. you can deploy the docker container on Heroku, AWS, Google Cloud, Linode for virtually nothing. If you look long and hard enough you can find cloud compute on credit.

Alternatively, wait for the n8n instance and support Jan and the team.

1 Like

@GavinTomlins In our case the goal is to have n8n running on our Heroku account.

The issue with n8n specially in heroku, seems to the the requirement to run as root.

@saal @metalcamp I also ran into the same problem, I have modified the Dockerfile a bit and added a simple start script which does not require sudo privileges. here’s the link to my GitHub repo - GitHub - sarveshpro/n8n-heroku: n8n docker implementation for heroku.
Thank you!

3 Likes

Thank you very much @sarvesh for sharing that with the community!

2 Likes