Skip to content

Instantly share code, notes, and snippets.

@anx21
Created August 23, 2016 20:23
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 anx21/0ceeabc55e30cf6d980ec3b5271785fc to your computer and use it in GitHub Desktop.
Save anx21/0ceeabc55e30cf6d980ec3b5271785fc to your computer and use it in GitHub Desktop.
Set up Vagrantfile (set provider to digitalocean) and unit files
In provision script, copy over unit files and git hooks
vagrant up && systemctl restart docker
Build the docker images in the git hook
postgres create production database
create superuser for psql
docker exec <app> rails db:reset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment