Skip to content

Commit 9f5c787

Browse files
author
Andrew Martlew
committed
- Application dir now /var/app/current
1 parent f9203cc commit 9f5c787

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nginx.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
# Configure on first load..
44
if [ ! -f /tmp/supervisord-nginx.log ] ; then
5-
mkdir -p /data/www
5+
mkdir -p /var/app/current
66

77
# Grab the code from an S3 bucket?
88
if [ -n "$AWS_S3_OBJECT" ] ; then
99
echo Copying application archive..
1010
aws s3 cp $AWS_S3_OBJECT app.zip
1111
echo Extracting to web server directory..
12-
unzip app.zip -d /data/www
13-
cd /data/www
12+
unzip app.zip -d /var/app/current
13+
cd /var/app/current
1414

1515
if [ -f .kubernetes/bootstrap.sh ] ; then
1616
source .kubernetes/bootstrap.sh

site.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
server {
22
listen 80;
33

4-
root /data/www/public;
4+
root /var/app/current/public;
55
index index.php index.html index.htm;
66

77
log_not_found off;

0 commit comments

Comments
 (0)