5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 20:06:22 +00:00

fix: usar .env

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

View file

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

View file

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