Skip to content

Commit

Permalink
add vagrant-cachier support
Browse files Browse the repository at this point in the history
  • Loading branch information
gotlium committed Jul 9, 2015
1 parent a5c28c9 commit 840b01d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ Vagrant.configure("2") do |config|
vb.customize ["modifyvm", :id, "--cpus", APP_CPUS]
end

if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
config.vm.network :private_network, ip: "44.44.44.45"

config.cache.synced_folder_opts = {
type: :nfs,
mount_options: ['rw', 'vers=3', 'tcp', 'nolock']
}
end
end
#
# }}}
7 changes: 4 additions & 3 deletions demo/.vagrant_bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

apt-get update
apt-get install -y redis-server git \
python python-dev python-pip libxml2-dev libxslt-dev zlib1g-dev && \
apt-get clean
python python-dev python-pip libxml2-dev libxslt-dev zlib1g-dev

pip install -r /mailer/requirements.txt

if [ -f "demo/db.sqlite" ]; then rm ./demo/db.sqlite; fi

python /mailer/manage.py syncdb --noinput
python /mailer/manage.py migrate --noinput
python /mailer/manage.py loaddata /mailer/auth.json

/bin/bash -c 'C_FORCE_ROOT=1 python /mailer/manage.py celeryd -Q default >& /dev/null & python /mailer/manage.py runserver 0.0.0.0:8000 >& /dev/null &'
nohup /bin/bash -c 'C_FORCE_ROOT=1 python /mailer/manage.py celeryd -Q default >& /dev/null & python /mailer/manage.py runserver 0.0.0.0:8000 >& /dev/null &' &

0 comments on commit 840b01d

Please sign in to comment.