5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-05-06 07:57:04 +00:00

fix: usar .env

This commit is contained in:
f 2023-03-14 19:30:58 -03:00
parent 25e6cd62dd
commit 4b575801c5
2 changed files with 6 additions and 4 deletions

View file

@ -1,7 +1,8 @@
RAILS_MASTER_KEY=CHANGEME
RAILS_GROUPS=assets
DELEGATE=athshe.sutty.nl
HAINISH=../haini.sh/haini.sh
DATABASE=
DATABASE_URL=postgres://suttier@postgresql.sutty.local/sutty
RAILS_ENV=development
IMAP_SERVER=
DEFAULT_FROM=

View file

@ -2,10 +2,11 @@ pipeline:
assets:
image: "registry.nulo.in/sutty/panel:3.14.8-2.7.6"
commands:
- "apk add python2"
- "apk add python2 dotenv"
- "yarn"
- "RAILS_GROUPS=assets bundle install --path=vendor"
- "RAILS_GROUPS=assets RAILS_MASTER_KEY=nada bundle exec rails assets:precompile assets:clean"
- "cp .env.example .env"
- "dotenv bundle install --path=vendor"
- "dotenv RAILS_ENV=production bundle exec rails assets:precompile assets:clean"
- "git add assets && git commit -m \"[skip ci] JS\" || true"
when:
branch: