Sha256: 4e82f032eb27c0998f292a06893b48b3dadabebc26bd2fd2a8b1bbaad1ff4a31
Contents?: true
Size: 686 Bytes
Versions: 14
Compression:
Stored size: 686 Bytes
Contents
#!/bin/bash -e # Set SOLID_QUEUE_CONFIG environment variable SOLID_QUEUE_CONFIG="$(bundle show hephaestus | tr -d '\n')/config/queue.yml" export SOLID_QUEUE_CONFIG if [ "$(id -u)" -eq 0 ] && [ ! -f /swapfile ]; then # allocate swap space fallocate -l 2GB /swapfile chmod 0600 /swapfile mkswap /swapfile echo 10 > /proc/sys/vm/swappiness swapon /swapfile echo 1 > /proc/sys/vm/overcommit_memory # rerun this script as nobody exec su nobody -s "$SHELL" -c "$0 $@" fi if [ "${1}" == "/app/bin/rails" ] && [ "${2}" == "server" ] && [ "$FLY_REGION" == "$PRIMARY_REGION" ]; then # run the db migrations /app/bin/rails db:migrate fi exec "${@}"
Version data entries
14 entries across 14 versions & 1 rubygems