Merge pull request #903 from ianblenke/ianblenke/issue895

Fix the PORT for issue #895

Ian Blenke 9 年 前
コミット
f47276b565
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2 2
      docker/scripts/init

+ 2 - 2
docker/scripts/init

@@ -150,8 +150,8 @@ source /app/.env
150 150
 
151 151
 # Fixup the Procfile and prepare the PORT
152 152
 [ -n "\${DO_NOT_RUN_JOBS}" ] && perl -pi -e 's/^jobs:/#jobs:/' /app/Procfile
153
-perl -pi -e 's/rails server\$/rails server -b 0.0.0.0 -p \\\$PORT/' /app/Procfile
154
-export PORT
153
+perl -pi -e 's/rails server -b0.0.0.0\$/rails server -b 0.0.0.0 -p \\\$PORT/' /app/Procfile
154
+export PORT="\${PORT:-3000}"
155 155
 
156 156
 # Start huginn
157 157
 exec sudo -u huginn -EH bundle exec foreman start