UPDATED to run on port 8320 (on the server).

UPDATED to v0.1.0.
This commit is contained in:
Eric Woodward 2018-01-07 21:18:30 -05:00
parent f9a65c10b8
commit f4df7112e3
3 changed files with 4 additions and 4 deletions

4
app.js
View File

@ -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', {

View File

@ -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);

View File

@ -1,6 +1,6 @@
{
"name": "@mysticbits/codex-mythica",
"version": "0.0.1",
"version": "0.1.0",
"private": true,
"scripts": {
"start": "nodejs ./bin/www"