From 2f9bec99a24a4201b2cc6355e7b2d46fd264a7ad Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Fri, 25 Mar 2016 20:44:14 +0300 Subject: [PATCH] default port changed in config.js; no port in deploying scripts --- deploy.sh | 3 +-- install.sh | 3 --- src/config.js | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/deploy.sh b/deploy.sh index ab372918..98ed4603 100755 --- a/deploy.sh +++ b/deploy.sh @@ -5,7 +5,6 @@ echo "Deploying art.shburg.org" NODE_ENV=production gulp deploy server="art.shburg.org" -app_port=1800 tarfile="build.tar.gz" tarpath=$TMPDIR${tarfile} destpath="~/www/art.shburg.org" @@ -29,7 +28,7 @@ scp ${tarpath} hoster@${server}:${destpath} echo "Build file successfully uploaded on server" echo "Installing..." -ssh hoster@${server} "bash -s" -- < ./install.sh ${destpath} ${tarfile} ${app_port} +ssh hoster@${server} "bash -s" -- < ./install.sh ${destpath} ${tarfile} rm ${tarpath} echo "Done" diff --git a/install.sh b/install.sh index 945ceb8b..428f63cc 100755 --- a/install.sh +++ b/install.sh @@ -2,7 +2,6 @@ dir_path="$1" build_file="$2" -port="$3" cd ${dir_path} @@ -12,8 +11,6 @@ gunzip -c ${build_file} | tar xopf - npm install --production --loglevel error -export PORT=${port} - #starting www if forever restart src/bin/www.js; then echo www.js restarted diff --git a/src/config.js b/src/config.js index 40409e62..5c898695 100644 --- a/src/config.js +++ b/src/config.js @@ -5,7 +5,7 @@ const privateFile = process.env['PRIVATE'] || 'private.json'; const privateData = JSON.parse(fs.readFileSync(privateFile, 'utf-8')); const index_file = process.env['INDEX'] || 'templates/main.html'; -const port = process.env['PORT'] || 3000; +const port = process.env['PORT'] || 1800; const config = { defaultIndex: path.join(__dirname, index_file),