Skip to content

Commit a8a18d2

Browse files
committed
Merge pull request candy-chat#458 from sww314/master
Fix candy-chat#456 to allow setup.sh to run correctly
2 parents fc6c65d + 4938fe3 commit a8a18d2

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

devbox/nginx-default.conf

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
server {
22
root {{ROOT_DIR}};
3-
index devbox/index.html;
43

54
charset utf-8;
65

76
server_name localhost;
7+
# Redirect to devbox/index.html
8+
# = means exact location
9+
location = / {
10+
try_files /devbox/index.html =404;
11+
}
812

913
location /http-bind/ {
1014
proxy_pass http://localhost:5280/http-bind/;

devbox/provisioning.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ cp /vagrant/devbox/prosody.cfg.lua /etc/prosody/prosody.cfg.lua
3131
#
3232
apt-get install -y nginx
3333
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
3535
/etc/init.d/nginx restart
3636

3737
#
3838
# Candy development dependencies
3939
#
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
4343
npm install -g grunt-cli
4444
npm install -g bower
4545

4646
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
4949

5050
#
5151
# Selenium & PhantomJS for testing

0 commit comments

Comments
 (0)