Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Golang Vagrant

Vagrant environment for Golang, with support for both go and gb tools.

Install

> git clone https://github.com/rgazo/go-vagrant.git
> cd go-vagrant/vagrant
> vagrant up

Usage

Log in to the vagrant box:

> vagrant ssh
> ll

There will be 2 directories

src/
vagrant/
  • vagrant contains configuration for haproxy
  • src will contain your project.
> cd src
> mkdir [your project name]
> cd [your project name]
> glide install

Glide Glide is a package manager for Go. More info: https://github.com/Masterminds/glide

HAproxy

Start haproxy:

sudo service haproxy start

Your server will be at http://192.168.50.4/

  • You will get a 503 error until you have your go project running on port 8000

PostgreSQL

Start PostgreSQL

sudo service postgresql start

Go (Golang)

About

Go Vagrant Box

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages