Skip to content

Vagrant dev environment for Senary and Hack

Notifications You must be signed in to change notification settings

kevdowney/harbor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Senary Harbor

Vagrant virtual environment for Senary Framework and Hack language. Includes:

  • HHVM 3.2
  • Nginx
  • Mysql
  • Composer
  • Git

Installation

Make sure you have VirtualBox and Vagrant installed.

Add the senary/harbor box:

$ vagrant add box senary/harbor

Clone the harbor repository to a central location, such as ~/harbor:

$ git clone https://github.com/senary/harbor ~/to-wherever-you-want

In settings.yml add the path to your public/private key. If you do not have one you can run:

$ ssh-keygen -t rsa -C "[email protected]"

Setup your shared folders.

  • from is the path to a folder on your host machine
  • to is the path that the from folder will be mapped to on the guest machine

Setup sites.

  • url is the server_name value for nginx
  • root is the path on the guest machine to the app root

Working w/ Harbor

SSH: (if you changed the ip in settings.yml, use that value instead)

$ ssh [email protected]

$ # you can also use the forwarded ports from settings.yml
$ ssh [email protected] -p 2222

MySQL:

  • username is harbor
  • password is secret (same for root user)
  • Either connect to 192.168.22.22 on port 3306 (or different ip from settings.yml)
  • Can also connect via localhost at port 33060

Adding sites after box is running, SSH into Harbor and run:

$ serve url.app /sync/path/to/public

Big Thanks

Code and inspiration for this project was taken from Laravel's Homestead. Big thanks as well to Chris Fidao and his Vaprobash project.

About

Vagrant dev environment for Senary and Hack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published