forked from uid/caesar-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
31 lines (22 loc) · 928 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.provider :virtualbox do |vb|
vb.memory = 4096
vb.customize [ "setextradata", :id,
"VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1" ]
end
config.vm.network :private_network, ip: "10.18.6.31"
config.vm.synced_folder "./", "/var/django/caesar", group: 'www-data'
config.vm.provision :shell, :inline => <<SCRIPT
# Setup needed by all Caesar installs
/var/django/caesar/setup.sh
# Setup specific to Vagrant -- make a folder for the sqlite3 database. We can't
# just store it in the shared folder /var/django/caesar, because Sqlite3 needs to
# lock the database file and Windows hosts don't support locking in the shared folder.
mkdir -p /var/django/db
touch /var/django/db/caesar.sqlite3
chown -R vagrant /var/django/db
chgrp -R www-data /var/django/db
chmod -R g+w /var/django/db
SCRIPT
end