From f4df7112e31595f45b06f404774446bbadc16fb1 Mon Sep 17 00:00:00 2001 From: Eric Woodward Date: Sun, 7 Jan 2018 21:18:30 -0500 Subject: [PATCH] UPDATED to run on port 8320 (on the server). UPDATED to v0.1.0. --- app.js | 4 ++-- bin/www | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index cab99d8..55e5c7a 100644 --- a/app.js +++ b/app.js @@ -19,7 +19,7 @@ Object.assign( title: 'The Codex Mythica', description: "The Codex Mythica is a database of all of the cards released for the Mythic Wars card game. Browse through all of the cards in the game, or search to find the card(s) you're looking for.", keywords: 'codex, card game, mythic cards, mythic wars cards, mythic wars, clash of the gods, cthulhu rises, nemesis, excalibre, collectible card game, ccg, mythic sets, game, multiplayer, hobby, zeus, thor', - base_uri: (process.env.NODE_ENV || '').toLowerCase().indexOf('dev') > -1 ? 'http://localhost:8302' : 'https://codex.mythicwarsgame.com' + base_uri: (process.env.NODE_ENV || '').toLowerCase().indexOf('dev') > -1 ? 'http://localhost:8320' : 'https://codex.mythicwarsgame.com' }, author: { name: pkg.author.name, @@ -60,7 +60,7 @@ app.use(function(req, res, next) { // development error handler // will print stacktrace -if (app.get('env') === 'development') { +if ((process.env.NODE_ENV || '').toLowerCase().indexOf('dev') > -1 ) { app.use(function(err, req, res, next) { res.status(err.status || 500); res.render('error', { diff --git a/bin/www b/bin/www index 241bedc..8829f74 100755 --- a/bin/www +++ b/bin/www @@ -2,7 +2,7 @@ var debug = require('debug')('my-application'); var app = require('../app'); -app.set('port', process.env.PORT || 8302); +app.set('port', process.env.PORT || 8320); var server = app.listen(app.get('port'), function() { console.log('Express server listening on port ' + server.address().port); diff --git a/package.json b/package.json index bcb39ce..47ba523 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mysticbits/codex-mythica", - "version": "0.0.1", + "version": "0.1.0", "private": true, "scripts": { "start": "nodejs ./bin/www"