Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
fix vagrant setup
Browse files Browse the repository at this point in the history
- npm install of yarn, webpack
- yarn install inside /vagrant directory
- running webpack locally on the portus web vm
  • Loading branch information
saurabhsurana-zz committed Mar 28, 2017
1 parent d5d33ec commit 6ca35b1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Vagrantfile
Expand Up @@ -90,6 +90,18 @@ cp /vagrant/vagrant/conf/portus/sysconfig_apache2 /etc/sysconfig/apache2
cp /vagrant/vagrant/conf/portus/httpd.conf.local /etc/apache2/httpd.conf.local
cp /vagrant/vagrant/conf/portus/portus.test.lan.conf /etc/apache2/vhosts.d/
EOS

node.vm.provision "shell", inline: <<EOS
cd /vagrant
sudo npm install webpack yarn n -g
sudo n latest
# Change path so that latest node binary can be used
PATH=/usr/local/bin:$PATH
yarn install
# run webpack locally on the portus web VM
webpack --watch --config config/webpack.js &
systemctl enable apache2
systemctl start apache2
EOS
Expand Down

0 comments on commit 6ca35b1

Please sign in to comment.