Sha256: 2853f28f85b23dfbfbaec6bf4caaa9bb9698da09945df1e2636c6813956ed27c
Contents?: true
Size: 409 Bytes
Versions: 8
Compression:
Stored size: 409 Bytes
Contents
#!/bin/bash <% if options.swap -%> # allocate swap space fallocate -l <%= options.swap %> /swapfile chmod 0600 /swapfile mkswap /swapfile echo 10 > /proc/sys/vm/swappiness swapon /swapfile echo 1 > /proc/sys/vm/overcommit_memory <% end -%> # If running the rails server then create or migrate existing database if [ "${*}" == "./bin/rails server" ]; then ./bin/rails <%= dbprep_command %> fi exec "${@}"
Version data entries
8 entries across 8 versions & 1 rubygems