Skip to content

Instantly share code, notes, and snippets.

@roma86
Created June 20, 2015 12:42
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 roma86/c896c4e393d5faf88bda to your computer and use it in GitHub Desktop.
Save roma86/c896c4e393d5faf88bda to your computer and use it in GitHub Desktop.
Create swap for digitalocean dokku

fix

Dokku errors

runtime: panic before malloc heap initialized
fatal error: runtime: cannot allocate heap metadata

dd if=/dev/zero of=/extraswap bs=1M count=512
mkswap /extraswap

Add line to the /etc/fstab

/extraswap         none            swap    sw                0       0

Then run this to enable /extraswap for swapping:

swapon -a
reboot now

Thanks for help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment