feat: add assets script function
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
8
abra.sh
8
abra.sh
@ -2,6 +2,14 @@
|
||||
|
||||
export ENTRYPOINT_CONF_VERSION=v5
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
migrate() {
|
||||
export OTP_SECRET=$(cat /run/secrets/otp_secret)
|
||||
export SECRET_KEY_BASE=$(cat /run/secrets/secret_key_base)
|
||||
|
||||
Reference in New Issue
Block a user