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:
NOOB BOTS 2020-10-14 00:07:31 +05:30 committed by GitHub
parent 5ee9d457b2
commit bfdb349a2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

5
heroku.yml Normal file
View file

@ -0,0 +1,5 @@
build:
docker:
web: Dockerfile
run:
web: bash /var/www/html/resources/heroku-docker-start.sh

View 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 "$@"