default port changed in config.js; no port in deploying scripts

This commit is contained in:
tmshv committed 2016-03-25 20:44:14 +03:00
1 parent 22e766aac8
commit 2f9bec99a2
3 files changed
+2 -6

No files matched your search

+1 -2
View File
@@ -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"
-3
View File
@@ -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
+1 -1
View File
@@ -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),