forked from coop-cloud/outline
docs: tricks & tips
This commit is contained in:
parent
403ddca0fc
commit
31bbab6033
16
README.md
16
README.md
|
@ -24,8 +24,22 @@ Wiki and knowledge base for growing teams
|
||||||
4. `abra app config YOURAPPNAME` - be sure to change `$DOMAIN` to something that resolves to
|
4. `abra app config YOURAPPNAME` - be sure to change `$DOMAIN` to something that resolves to
|
||||||
your Docker swarm box
|
your Docker swarm box
|
||||||
5. `abra app deploy YOURAPPNAME`
|
5. `abra app deploy YOURAPPNAME`
|
||||||
6. Build the database with `abra app run YOURAPPNAME app yarn db:migrate --env=production-ssl-disabled`
|
|
||||||
7. Open the configured domain in your browser to finish set-up
|
7. Open the configured domain in your browser to finish set-up
|
||||||
|
|
||||||
[`abra`]: https://git.coopcloud.tech/coop-cloud/abra
|
[`abra`]: https://git.coopcloud.tech/coop-cloud/abra
|
||||||
[`coop-cloud/traefik`]: https://git.coopcloud.tech/coop-cloud/traefik
|
[`coop-cloud/traefik`]: https://git.coopcloud.tech/coop-cloud/traefik
|
||||||
|
|
||||||
|
## Tips & Tricks
|
||||||
|
|
||||||
|
### Post-deploy migration
|
||||||
|
|
||||||
|
```
|
||||||
|
abra app run YOURAPPNAME app sh
|
||||||
|
export DATABASE_PASSWORD=$(cat /run/secrets/db_password)
|
||||||
|
export DATABASE_URL="postgres://outline:${DATABASE_PASSWORD}@${STACK_NAME}_postgres:5432/outline"
|
||||||
|
yarn db:migrate --env=production-ssl-disabled
|
||||||
|
```
|
||||||
|
|
||||||
|
### Setting up your `.env` config
|
||||||
|
|
||||||
|
Don't use quotes (`"..."`), the NodeJS scripts flip out for some reason.
|
||||||
|
|
Loading…
Reference in New Issue