Skip to content

Commit

Permalink
Merge branch 'master' of github.com:cforemoto/n8n-heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
saengate committed Jul 1, 2022
2 parents d9be8f6 + 5704f8e commit a5ac55a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:lts-alpine

# pass N8N_VERSION Argument while building or use default
ARG N8N_VERSION=0.166.0
ARG N8N_VERSION=0.184.0

# Update everything and install needed dependencies
RUN apk add --update graphicsmagick tzdata
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

![Docker](https://github.com/sarveshpro/n8n-heroku/workflows/Docker/badge.svg) ![Heroku](https://github.com/sarveshpro/n8n-heroku/workflows/Heroku/badge.svg)

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/gmoqa/n8n-heroku)
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

#### [ Open Source Contributors feel free to maintain this repository ]

New method, just click, configure and get your n8n running.
Also, now set app stack to container and simply connect this Github repo and deploy, heroku uses default configuration from app.json
Expand Down
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
{
"plan": "heroku-postgresql",
"options": {
"version": "11"
"version": "14"
}
},
{
Expand Down
5 changes: 4 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if [ "$DATABASE_URL" ]
then
ARG_URL=$DATABASE_URL
echo $DATABASE_URL;
echo "postgre config detected"
echo "postgres config detected"

elif [ "$MONGODB_URI" ]
then
Expand All @@ -27,6 +27,9 @@ else
echo "no config vars found"
fi

# disable diagnostics
export N8N_DIAGNOSTICS_ENABLED=false

# prefix variables to avoid conflicts and run parse url function on arg url
PREFIX="N8N_DB_" parse_url "$ARG_URL"

Expand Down

0 comments on commit a5ac55a

Please sign in to comment.