support running nginx in vbox
add Vagrant file with configuration to run nginx in virtual box. Use vagrant up to start. Server listens to http://localhost:8888/map/
This commit is contained in:
commit
4e97e09466
7
.gitignore
vendored
7
.gitignore
vendored
@ -38,6 +38,12 @@ Network Trash Folder
|
|||||||
Temporary Items
|
Temporary Items
|
||||||
.apdisk
|
.apdisk
|
||||||
|
|
||||||
|
## Vagrant
|
||||||
|
.vagrant/
|
||||||
|
|
||||||
|
# Log files (if you are creating logs in debug mode, uncomment this)
|
||||||
|
# *.log
|
||||||
|
|
||||||
## Project Files
|
## Project Files
|
||||||
wsgi/.idea
|
wsgi/.idea
|
||||||
www/dlsv
|
www/dlsv
|
||||||
@ -47,3 +53,4 @@ www/data/events.xml
|
|||||||
www/data/geolocation.js
|
www/data/geolocation.js
|
||||||
scripts/*.json
|
scripts/*.json
|
||||||
scripts/*.xml
|
scripts/*.xml
|
||||||
|
|
||||||
|
16
Vagrantfile
vendored
Normal file
16
Vagrantfile
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
Vagrant.configure("2") do |config|
|
||||||
|
config.vm.box = "ubuntu/jammy64"
|
||||||
|
config.vm.synced_folder ".", "/vagrant"
|
||||||
|
config.vm.network(:forwarded_port, guest: 80, host: 8888)
|
||||||
|
|
||||||
|
config.vm.provision :shell, inline: <<-SHELL
|
||||||
|
sudo apt-get -y update
|
||||||
|
sudo apt-get -y install nginx
|
||||||
|
|
||||||
|
echo "Starting nginx..."
|
||||||
|
sudo ln -s /vagrant/www /var/www/html/map
|
||||||
|
sudo cp /vagrant/www/index.html.en /vagrant/www/index.html
|
||||||
|
sudo useradd -s /bin/false nginx
|
||||||
|
sudo service nginx restart
|
||||||
|
SHELL
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user