- Ubuntu v16.04 x64 LTS
- Nginx
- Nodejs 8.x
- NPM 5.x
- MongoDB 3.x
- Docker CE Latest Stable
- Typescript
- Typings
- Gulp
- Yarn
/sync -> /var/www
IP: 192.168.56.103
Domain: dev.scvagrant.com
Location: /var/www
- Install VirtualBox (Note you must disable Hyper-V before installing)
- Disabling Hyper-V
- VB Windows x64 Download Installer
- VB Mac OSX Download Installer
- Install Vagrant Latest
Add this to your global settings.
"files.encoding": "utf8"
vagrant plugin install vagrant-proxyconf
Uncomment these lines in the ./scvagrant/Vagrantfile
config.proxy.http = "http://wsproxy:8080"
config.proxy.https = "https://wsproxy:8080"
config.proxy.no_proxy = "localhost,127.0.0.1"
Clone Repository
git clone git@github.com:messified/scvagrant.git
Change to the repo's directory in Powershell
cd path/to/scvagrant/
(Initial start will take a few minutes)
vagrant up
vagrant ssh
sudo apt-get update
sudo apt-get upgrade -y
During the upgrade process it will most likely prompt you to install GRUB
Select where to install GRUB. Choose the second option
/dev/sda1 (510MB; /boot)
Once the upgrade process is complete we'll need to restart the Vagrant box.
exit
vagrant reload
SSH back into your Vagrant box.
vagrant ssh
Run setup.sh script
cd /var/www
sh setup.sh
Run docker.sh in /var/www/
sh docker.sh
All done! Your local development environment is ready to go!
Within your .\scvagrant
directory there's a folder named sync
(location: .\scvagrant\sync
) this directory is the link/synced directory between the Vagrant VM and your local PC. The sync
directory is where all your projects must reside for the Vagrant instance (Ubuntu Server) to pickup.
From the vagrant(Ubuntu Server) perspective, the sync
directory is the /var/www
directory. I've included an example project within the .\sync\projects\project-example\
directory. If you SSH into your vagrant box the directory would be /var/www/projects/project-example
.
Local (Windows) | Vagrant (Ubuntu) |
---|---|
.\scvagrant\sync | /var/www/ |
Note: Run all vagrant commands within the scvagrant directory (Best used with Powershell)
vagrant ssh
vagrant reload
Once that's finished add this to your local machine's host file.
192.168.56.103 dev.scvagrant.com