Skip to content

Instantly share code, notes, and snippets.

@freekrai
Created June 25, 2015 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freekrai/9ff93d3fc9e9b95855c8 to your computer and use it in GitHub Desktop.
Save freekrai/9ff93d3fc9e9b95855c8 to your computer and use it in GitHub Desktop.
dokku swap file
  1. If /extraswap was previously created then run:
sudo swapoff /extraswap && sudo rm /extraswap    
  1. Type:
dd if=/dev/zero of=/extraswap bs=1M count=1024
mkswap /extraswap
  1. Add it to /etc/fstab:
/extraswap         none            swap    sw                0       0
  1. Finally:
swapon -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment