mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 21:57:22 +01:00
fix: vagrant provisioning installs node automatically
This commit is contained in:
@@ -1,19 +1,24 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo Installing nvm...
|
echo Installing nvm...
|
||||||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | bash
|
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | NVM_DIR="/home/vagrant/.nvm" PROFILE="/home/vagrant/.profile" bash
|
||||||
source ~/.profile
|
echo "source /home/vagrant/.nvm/nvm.sh" >> /home/vagrant/.profile
|
||||||
|
echo "nvm install" >> /home/vagrant/.profile
|
||||||
|
|
||||||
|
chown -R vagrant:vagrant /home/vagrant/.nvm
|
||||||
|
|
||||||
|
source /home/vagrant/.profile
|
||||||
|
|
||||||
echo Setting up node...
|
echo Setting up node...
|
||||||
|
cd /vagrant
|
||||||
nvm install
|
nvm install
|
||||||
nvm use
|
nvm use
|
||||||
nvm alias default current
|
nvm alias default current
|
||||||
|
|
||||||
echo Update npm...
|
echo Update npm...
|
||||||
npm install -g npm
|
npm install -g npm@2
|
||||||
|
|
||||||
echo Installing global modules...
|
echo Installing global modules...
|
||||||
npm install -g gulp bower grunt-cli
|
npm install -g gulp bower grunt-cli mocha
|
||||||
|
|
||||||
echo Installing Habitica...
|
npm i
|
||||||
npm install --no-bin-links
|
|
||||||
|
|||||||
@@ -95,6 +95,8 @@ rm firefox.deb
|
|||||||
echo Installing ntp...
|
echo Installing ntp...
|
||||||
apt-get install -qq ntp
|
apt-get install -qq ntp
|
||||||
|
|
||||||
|
/vagrant/vagrant_scripts/install.sh
|
||||||
|
|
||||||
## # echo Seeding Mongodb...
|
## # echo Seeding Mongodb...
|
||||||
## node ./src/seed.js
|
## node ./src/seed.js
|
||||||
## no longer required - see comments in src/seed.js
|
## no longer required - see comments in src/seed.js
|
||||||
|
|||||||
Reference in New Issue
Block a user