Compare commits
4 Commits
redis_pass
...
2.1.0+v2.2
Author | SHA1 | Date | |
---|---|---|---|
b5eec9e10f | |||
c6afdb09c0 | |||
8761f3dc6e | |||
8dcb1f35e8 |
2
abra.sh
2
abra.sh
@ -1,4 +1,4 @@
|
||||
export LOOMIO_ENTRYPOINT_VERSION=v5
|
||||
export LOOMIO_ENTRYPOINT_VERSION=v6
|
||||
|
||||
# cannot be integrated into entrypoint.sh as it requires the operator to create a user first
|
||||
function make_last_user_admin()
|
||||
|
@ -71,7 +71,7 @@ services:
|
||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.0.0+v2.25.3"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.1.0+v2.25.3"
|
||||
- "backupbot.backup:=${ENABLE_BACKUPS:-true}"
|
||||
worker:
|
||||
image: loomio/loomio:v2.25.3
|
||||
|
@ -31,16 +31,13 @@ if [ -n "$1" ]; then
|
||||
echo "Running '$1'"
|
||||
$1
|
||||
else
|
||||
if [ ! -f /loomio/storage/migrations_ran ] && [ "${TASK:-}" = "worker" ]; then
|
||||
echo "first deploy, running DB setup..."
|
||||
rake db:setup
|
||||
touch /loomio/storage/migrations_ran
|
||||
fi
|
||||
|
||||
echo "running DB migrations..."
|
||||
rake db:migrate
|
||||
echo "DB migrations finished"
|
||||
|
||||
echo "starting loomio!"
|
||||
/loomio/docker_start.sh
|
||||
if [ "$TASK" = "worker" ]; then
|
||||
bundle exec sidekiq
|
||||
else
|
||||
bundle install
|
||||
bundle exec rake db:prepare
|
||||
bundle exec puma -C config/puma.rb
|
||||
fi
|
||||
fi
|
||||
|
@ -1,9 +1,14 @@
|
||||
In this release the passwords for smtp and postgres DB were moved into docker secrets. Therefore a few manual steps need to be performed (also available in recipe documentation)
|
||||
|
||||
* adapt your env file with the new vars, especially SECRET_DB_PASSWORD_VERSION=v1 and SECRET_SMTP_PASSWORD_VERSION=v1
|
||||
* insert your smtp password with abra app secret insert <app-name> smtp_password v1 "<your-password>"
|
||||
* abra app secret generate <app-name> db_password v1
|
||||
* abra app deploy <app-name>
|
||||
* set the new password in DB: abra app cmd <app-name> db set_new_db_password
|
||||
* adapt your env file with the new vars, especially `SECRET_DB_PASSWORD_VERSION=v1` and `SECRET_SMTP_PASSWORD_VERSION=v1` (remember, you can use `abra app check <app-name>` to check for any missing variables)
|
||||
* insert your existing smtp password with `abra app secret insert <app-name> smtp_password v1 "<your-password>"`
|
||||
|
||||
Then, choose whether to keep the existing insecure database password (easy):
|
||||
* `abra app secret insert <app-name> db_password v1 password`
|
||||
|
||||
Or, switch to a new secure password (harder, better):
|
||||
* `abra app secret generate <app-name> db_password v1`
|
||||
* `abra app deploy <app-name>`
|
||||
* set the new password in DB: `abra app cmd <app-name> db set_new_db_password` (NOTE: if you get "FATA loomio doesn't have a set_new_db_password function" here, run `cd ~/.abra/recipes/loomio && git checkout main`, then re-run the `abra app cmd` command with `-C` at the end)
|
||||
* redeploy
|
||||
|
||||
|
1
release/2.1.0+v2.25.3
Normal file
1
release/2.1.0+v2.25.3
Normal file
@ -0,0 +1 @@
|
||||
DB initialization issues with wrong migration should be fixed now. (But not really sure why)
|
Reference in New Issue
Block a user