feat: new assets script

This commit is contained in:
decentral1se 2023-02-17 10:03:50 +01:00
parent e7898a5eea
commit 6fa8d78593
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410

View File

@ -1,5 +1,13 @@
export ENTRYPOINT_CONF_VERSION=v2
assets() {
export OTP_SECRET=$(cat /run/secrets/otp_secret)
export SECRET_KEY_BASE=$(cat /run/secrets/secret_key_base)
export DB_PASS=$(cat /run/secrets/db_password)
RAILS_ENV=production bundle exec rails assets:precompile
}
admin() {
export OTP_SECRET=$(cat /run/secrets/otp_secret)
export SECRET_KEY_BASE=$(cat /run/secrets/secret_key_base)