Compare commits

..

No commits in common. "master" and "develop" have entirely different histories.

2 changed files with 11 additions and 16 deletions

View file

@ -35,21 +35,12 @@ Setup configuration
dokku config:set --no-restart $APP SYMFONY__ENV__FROM_EMAIL=$APP@example.com
dokku config:set --no-restart $APP SYMFONY__ENV__DOMAIN_NAME=https://your-$APP-instance.$APP.org
dokku config:set --no-restart $APP SYMFONY__ENV__SERVER_NAME="Your $APP instance"
dokku config:set --no-restart $APP SYMFONY__ENV__SERVER_NAME="Your $APP instance"
dokku config:set --no-restart $APP SYMFONY__ENV__FOSUSER_REGISTRATION=false
dokku config:set --no-restart $APP SYMFONY__ENV__FOSUSER_CONFIRMATION=false
Setup domain and TLS with letsencrypt
Setup letsencrypt
dokku domains:add bag bag.danaos.apps.glenux.net
dokku letsencrypt:set $APP email $APP@example.com
dokku letsencrypt:enable $APP
Limit resources
dokku resource:limit --memory 1000m bag
dokku resource:limit --cpu 1 bag
Deploy
git remote add dokku dokku@example.com:$APP
@ -57,11 +48,10 @@ Deploy
## Post-install
docker exec -it $APP.web.1 su -c "/usr/local/bin/entrypoint-wrapper.sh migrate"
docker exec -it $APP.web.1 su -c "bin/console list --env=prod" -s /bin/sh nobody
docker compose run $APP -- exec su -c "bin/console list --env=prod" -s /bin/sh nobody
docker exec -it $APP.web.1 su -c "bin/console fos:user:create --super-admin --env=prod" -s /bin/sh nobody
docker exec -it $APP.web.1 su -c "bin/console fos:user:promote --super --env=prod" -s /bin/sh nobody
docker compose exec $APP su -c "bin/console fos:user:create --super --env=prod" -s /bin/sh nobody
docker compose exec $APP su -c "bin/console fos:user:promote --super --env=prod" -s /bin/sh nobody
## Setup on host

View file

@ -1,12 +1,17 @@
#!/bin/sh
# vim: set ts=2 sw=2 et ft=bash:
echo "== Loading database parameters from DATABASE_URL..."
eval "$(/usr/local/bin/parse-database-url.sh "${DATABASE_URL:-}" SYMFONY__ENV__DATABASE |sed -e 's/^/export /')"
# Rename variables
SYMFONY__ENV__DATABASE_PASSWORD="$SYMFONY__ENV__DATABASE_PASS"
export SYMFONY__ENV__DATABASE_PASSWORD
echo "== Changing entrypoint..."
env
echo "=== entrypoint"
cat /entrypoint.sh
echo "changing entrypoint..."
echo /entrypoint.sh # "$@"
exec /entrypoint.sh "$@"