Compare commits
No commits in common. "master" and "develop" have entirely different histories.
2 changed files with 11 additions and 16 deletions
18
README.md
18
README.md
|
@ -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__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__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__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:set $APP email $APP@example.com
|
||||||
dokku letsencrypt:enable $APP
|
dokku letsencrypt:enable $APP
|
||||||
|
|
||||||
Limit resources
|
|
||||||
|
|
||||||
dokku resource:limit --memory 1000m bag
|
|
||||||
dokku resource:limit --cpu 1 bag
|
|
||||||
|
|
||||||
Deploy
|
Deploy
|
||||||
|
|
||||||
git remote add dokku dokku@example.com:$APP
|
git remote add dokku dokku@example.com:$APP
|
||||||
|
@ -57,11 +48,10 @@ Deploy
|
||||||
|
|
||||||
## Post-install
|
## Post-install
|
||||||
|
|
||||||
docker exec -it $APP.web.1 su -c "/usr/local/bin/entrypoint-wrapper.sh migrate"
|
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 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 compose exec $APP su -c "bin/console fos:user:create --super --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:promote --super --env=prod" -s /bin/sh nobody
|
||||||
|
|
||||||
## Setup on host
|
## Setup on host
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,17 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# vim: set ts=2 sw=2 et ft=bash:
|
# 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 /')"
|
eval "$(/usr/local/bin/parse-database-url.sh "${DATABASE_URL:-}" SYMFONY__ENV__DATABASE |sed -e 's/^/export /')"
|
||||||
|
|
||||||
# Rename variables
|
# Rename variables
|
||||||
SYMFONY__ENV__DATABASE_PASSWORD="$SYMFONY__ENV__DATABASE_PASS"
|
SYMFONY__ENV__DATABASE_PASSWORD="$SYMFONY__ENV__DATABASE_PASS"
|
||||||
export SYMFONY__ENV__DATABASE_PASSWORD
|
export SYMFONY__ENV__DATABASE_PASSWORD
|
||||||
|
|
||||||
echo "== Changing entrypoint..."
|
env
|
||||||
|
|
||||||
|
echo "=== entrypoint"
|
||||||
|
cat /entrypoint.sh
|
||||||
|
|
||||||
|
echo "changing entrypoint..."
|
||||||
|
echo /entrypoint.sh # "$@"
|
||||||
exec /entrypoint.sh "$@"
|
exec /entrypoint.sh "$@"
|
||||||
|
|
Loading…
Add table
Reference in a new issue