update vagrantfile and install script

This commit is contained in:
scragg 2014-11-06 16:28:19 -06:00
parent 2d6f368ff1
commit c2404760b8
2 changed files with 11 additions and 7 deletions

6
Vagrantfile vendored
View file

@ -5,11 +5,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider :virtualbox do |vb|
vb.name = "realms-wiki"
vb.memory = 2048
vb.cpus = 4
vb.memory = 512
vb.cpus = 2
end
config.vm.provision "shell", path: "install.sh"
config.vm.provision "shell", path: "install.sh", privileged: "false"
end
Vagrant::Config.run do |config|

View file

@ -43,21 +43,25 @@ libffi-dev libyaml-dev libssl-dev nodejs
# Install frontend assets
sudo npm install -g bower
cd ${APP_DIR}
cd /home/vagrant
bower --config.interactive=false install
virtualenv .venv
source .venv/bin/activate
cd /vagrant
bower --config.interactive=false install
pip install -r requirements.txt
echo "Installing start scripts"
cat << EOF > /usr/local/bin/realms-wiki
cat << EOF > /tmp/realms-wiki
#!/bin/bash
${APP_DIR}/.venv/bin/realms-wiki "\$@"
/home/vagrant/.venv/bin/realms-wiki "\$@"
EOF
sudo mv /tmp/realms-wiki /usr/local/bin
sudo chmod +x /usr/local/bin/realms-wiki
realms-wiki start