Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant Bootstrap Fixes #83

Merged
merged 2 commits into from
Sep 22, 2016
Merged

Conversation

DiscoStarslayer
Copy link
Contributor

Some small tweaks to improve first time vagrant up experience

Added POST_COMMENTS to vagrant_env.sh
Fixes freshly bootstraped vagrant boxes from failing to run the rust back end. The recent changes require POST_COMMENTS to be true or false before running the rust back end, but this is not included in vagrant_env.sh. I assume false is a sane default in this case.

Created frontend provisioning script
This script handles pulling in all of the frontend's dependencies. It also creates a symlink from the node_modules directory inside the shared /vagrant folder to the Vagrant VM's home folder. This fixes issues in windows where npm install tries to create symlinks in a NTFS backed file system. It also speeds up the npm install process as Virtual Box's shared folder engine is significantly slower than a native file system, especially with npm's large number of small files.

Open Discussion
I'm not sure if having the npm and bower install happen at provision time is the best plan or not. While convenient from my perspective, I can see it being annoying if, for example, someone just wants to hack on the scraper. So I'm not bound to keeping that part in this PR, but the symlink is a definite improvement IMO, it really speeds up the install and helps to work around OS/VM Engine specific quirks.

This script handles pulling in all of the frontend's dependencies. It also creates a symlink from the node_modules directory inside the shared /vagrant folder to the Vagrant VM's home folder. This fixes issues in windows where npm install tries to create symlinks in a NTFS backed file system. It also speeds up the npm install process as Virtual Box's shared folder engine is significantly slower than a native file system, especially with npm's large number of small files.
@anp
Copy link
Member

anp commented Sep 22, 2016

Thanks! Working great for me on a fresh build. I could have sworn I updated that POST_COMMENTS variable, but I must have done it in my virtual machine...oops!

@anp anp merged commit 1fc6409 into rust-lang:master Sep 22, 2016
anoadragon453 pushed a commit to matrix-org/mscbot that referenced this pull request Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants