Back to Recipes
Enable 1GB swap (fast & will survive a reboot)
Creates a 1G swapfile that will be mounted again each time the instance boots by adding it to /etc/fstab. Based on:
https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04
bash