Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.
/ buffalo-ocean Public archive

A Go Buffalo plugin for deploying docker to DigitalOcean

License

Notifications You must be signed in to change notification settings

wolves/buffalo-ocean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

buffalo-ocean

A plugin for https://gobuffalo.io that makes deploying to DigitalOcean easier.

It assumes you are using Docker to deploy

Notice:

A 1GB DigitalOcean Standard Droplet will be created for you when using this plugin and being that DigitalOcean does charge for their services, hosting your site on this size droplet with them will cost you a $5 monthly fee. (DigitalOcean Pricing)

TODO:

  • Update deploy command to persist existing env vars configured during setup phase
  • Refactoring implementation & general cleanup
  • Add interactive version

Installation

$ go get -u -v github.com/wolves/buffalo-ocean

Setup

buffalo ocean setup --app-name YOURAPP --key YOUR_DIGITAL_OCEAN_KEY

This command will setup and create a new DigitalOcean server droplet for you and deploy your app to it, based on your projects Dockerfile.

Deploying

The initial setup command will do a deploy at the end, but anytime after that initial setup, you'll want to use the buffalo ocean deploy command to push a new version of your application, it'll even run your migrations for you as-long-as that step is provided in your projects Dockerfile.

$ buffalo ocean deploy --app-name YOURAPP

Flags/Options

There are a lot of flags and options you can use to manage what/how you deploy to DigitalOcean. Use the --help flag to see a list of them all.

Credits

  • Amber Framework - Many structural flow ideas for creating this plugin came from here. As-well-as how to manage DigitalOcean from docker-machine
  • Buffalo-Heroku - Referenced regularly for buffalo integration and golang guidance
  • Buffalo - The whole reason this plugin exists
  • The Buffalo Slack Channel - Thank you to everyone for the helpful guidance along the way

About

A Go Buffalo plugin for deploying docker to DigitalOcean

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages