File tree 2 files changed +11
-7
lines changed
2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
1
server {
2
2
root {{ROOT_DIR}};
3
- index devbox/index.html;
4
3
5
4
charset utf-8;
6
5
7
6
server_name localhost;
7
+ # Redirect to devbox/index.html
8
+ # = means exact location
9
+ location = / {
10
+ try_files /devbox/index.html =404;
11
+ }
8
12
9
13
location /http-bind/ {
10
14
proxy_pass http://localhost:5280/http-bind/;
Original file line number Diff line number Diff line change @@ -31,21 +31,21 @@ cp /vagrant/devbox/prosody.cfg.lua /etc/prosody/prosody.cfg.lua
31
31
#
32
32
apt-get install -y nginx
33
33
cp /vagrant/devbox/nginx-default.conf /etc/nginx/sites-available/default
34
- sed --in-place ' s|{{ROOT_DIR}}|/vagrant|g' /etc/nginx/sites-available/default/nginx-default.conf
34
+ sed --in-place ' s|{{ROOT_DIR}}|/vagrant|g' /etc/nginx/sites-available/default
35
35
/etc/init.d/nginx restart
36
36
37
37
#
38
38
# Candy development dependencies
39
39
#
40
- sudo add-apt-repository ppa:chris-lea/node.js
41
- sudo apt-get update
42
- sudo apt-get install -y nodejs git
40
+ add-apt-repository ppa:chris-lea/node.js
41
+ apt-get update
42
+ apt-get install -y nodejs git
43
43
npm install -g grunt-cli
44
44
npm install -g bower
45
45
46
46
cd /vagrant
47
- su -u vagrant npm install
48
- su -u vagrant bower install
47
+ sudo -H -u vagrant npm install
48
+ sudo -H -u vagrant bower install
49
49
50
50
#
51
51
# Selenium & PhantomJS for testing
You can’t perform that action at this time.
0 commit comments