This repo will set up a complete Astromo development environment.
- VirtualBox
- Vagrant
Clone this repo
git clone [email protected]:astromo/astromo-vagrant.git
cd astromo-vagrant
Clone our Astromo repos, make sure to execute this command from the root directory
./scripts/clone.sh
vagrant up
Make sure you added your ssh key to the ssh agent using
ssh-add
Connect to the Vagrant box using
vagrant ssh
The Vagrant is set up to use the following ip: 192.168.33.10
The src
folder will contain our repos and source code and are synced back and forth using an NFS share to /vagrant/src
inside the Vagrant box.
Because of this, you should always make sure that you run npm install
from inside the Vagrant box to compile node modules binaries that are native to the Vagrant OS and not your host OS.
To reprovision your box in case of changes to the Vagrant process, simply
vagrant reload --provision
Or in case your development environment is dirty and you'd like to reset it
vagrant destroy && vagrant up
To update all astromo repos, simply use
./scripts/update.sh