Skip to content

Instantly share code, notes, and snippets.

@geramirez
Last active July 18, 2016 21:57
Show Gist options
  • Save geramirez/691419083f95ea1b26c567c691452a99 to your computer and use it in GitHub Desktop.
Save geramirez/691419083f95ea1b26c567c691452a99 to your computer and use it in GitHub Desktop.

Simple custom buildpack

https://docs.cloudfoundry.org/buildpacks/custom.html

Staging

mkdir -m 0755 /nix && chown vcap /nix
su vcap
. /home/vcap/.nix-profile/etc/profile.d/nix.sh
nix-env --install darkhttpd
nix-env --install cowsay
cowsay "hello from staging!!!"

Run command

darkhttpd `pwd` --daemon --port $PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment