Skip to content

Instantly share code, notes, and snippets.

@tlimpanont
Last active July 18, 2016 06:56
Show Gist options
  • Save tlimpanont/fd10c8dfc9871be3ceddb7c4ca8658ff to your computer and use it in GitHub Desktop.
Save tlimpanont/fd10c8dfc9871be3ceddb7c4ca8658ff to your computer and use it in GitHub Desktop.
ALTERNATIVE test branch without colon folders vagrant stuffs

vagrant

Make sure you have Vagrant and Oracle VM Virtualbox installed on your development machine.

Download & Install

https://www.vagrantup.com/downloads.html

https://www.virtualbox.org/wiki/Downloads

git clone https://github.com/part-up/vagrant-meteor.git
cd vagrant-meteor
vagrant up --provider virtualbox

After the virtaul box installation is completed:

vagrant ssh

Copy and paste in the vagrant machine terminal

cd /vagrant
git clone -b refactor-colon-folders https://github.com/part-up/part-up.git ~/part-up
cp -r ~/part-up /vagrant/
cd part-up/app
rm -rf .meteor
mkdir .meteor/

sudo mount --bind /home/vagrant/part-up/app/.meteor/ /vagrant/part-up/app/.meteor/
echo "sudo mount --bind /home/vagrant/part-up/app/.meteor/ /vagrant/part-up/app/.meteor/" >> ~/.bashrc && source ~/.bashrc

Decrypt part-up config:

cd /vagrant/part-up/config/development
sudo ./decrypt

Ask Theuy Limpanont the decryption password. The system will ask the password twice

Start part-up MeteorJS application

cd /vagrant/part-up/
./start

The application is served on (see Vagrantfile): 192.168.33.10:3000

As you can see there is a folder part-up created in the root folder of the project (host machine). The source code of virtual machine box (guest machine) inside /vagrant/part-up is the same source code as in the root.

The best way to edit the source code is to do it on your host machine, so you can still use your favorite code editor.

Our convention:

Your OS (host machine)

Editing, committing and pushgin the source code

Virtualbox (guest machine)

Start and run the meteor application with mongo server.

You can do vagrant ssh to login into the guest machine. And do

cd /vagrant/part-up
./start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment