Last active
August 29, 2015 13:56
-
-
Save williamsodell/9241326 to your computer and use it in GitHub Desktop.
Can be ran with 'bash <(curl -s https://gist.githubusercontent.com/williamsodell/9241326/raw/2d0d240e51bb44f0d387e1db0aa30bed766b149c/Add-Swap-Digitalocean)'. Built from http://blog.parkermoore.de/2013/12/21/fixing-memory-issues-in-dokku-hosted-on-digitalocean-512mb-droplet/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dd if=/dev/zero of=/extraswap bs=1M count=512 | |
mkswap /extraswap | |
echo "/extraswap none swap sw 0 0" >> /etc/fstab | |
swapon -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment