diff --git a/bin/release b/bin/release index a603236..0f00929 100755 --- a/bin/release +++ b/bin/release @@ -4,5 +4,5 @@ set -e cat << EOF --- default_process_types: - web: sh start.sh + web: echo 's//{${PORT}}/g' && sed -i 's//{${PORT}}/g' /app/nxinx.conf && /app/nginx/nginx -c /app/nginx.conf EOF diff --git a/bin/start.sh b/bin/start.sh deleted file mode 100644 index 7846bf4..0000000 --- a/bin/start.sh +++ /dev/null @@ -1,2 +0,0 @@ -erb /app/nginx.conf.erb > /app/nginx.conf -/app/nginx/nginx -c /app/nginx.conf \ No newline at end of file diff --git a/conf/nginx.conf.erb b/conf/nginx.conf similarity index 74% rename from conf/nginx.conf.erb rename to conf/nginx.conf index 5417ff6..7b2b070 100644 --- a/conf/nginx.conf.erb +++ b/conf/nginx.conf @@ -11,9 +11,9 @@ http { types_hash_max_size 2048; include mime.types; server { - listen <%= ENV['PORT'] %>; + listen ; server_name _; - root <%= ENV.fetch('root', '/app/www') %>; + root /app/www; index index.html; } }