heroku-docker-fix (#318)
* Fixed heroku docker startup moved to resources folder for clean environment * added heroku.yml for Docker deployment to heroku * Update heroku.yml fixed correct executing path * Update heroku-docker-start.sh * Update heroku.yml Co-authored-by: Pierre Rudloff <contact@rudloff.pro> Co-authored-by: Pierre Rudloff <contact@rudloff.pro>
This commit is contained in:
parent
5ee9d457b2
commit
bfdb349a2b
2 changed files with 10 additions and 0 deletions
5
heroku.yml
Normal file
5
heroku.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
build:
|
||||||
|
docker:
|
||||||
|
web: Dockerfile
|
||||||
|
run:
|
||||||
|
web: bash /var/www/html/resources/heroku-docker-start.sh
|
5
resources/heroku-docker-start.sh
Normal file
5
resources/heroku-docker-start.sh
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
a2dismod mpm_event
|
||||||
|
sed -i "s/Listen 80/Listen ${PORT:-80}/g" /etc/apache2/ports.conf
|
||||||
|
apache2-foreground "$@"
|
Loading…
Reference in a new issue