Skip to content

Commit

Permalink
moves server file to root
Browse files Browse the repository at this point in the history
  • Loading branch information
minaorangina committed Mar 21, 2017
1 parent a9a4010 commit c31321f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"name": "run",
"version": "1.0.0",
"description": "Run or walk for your transport?",
"main": "./server/start.js",
"main": "start.js",
"engines": {
"node": "6.9.1"
},
"scripts": {
"start": "node ./server/start.js",
"start-dev": "nodemon ./server/start.js",
"start": "node start.js",
"start-dev": "nodemon start.js",
"dev": "node ./src/utils/dev-server.js",
"postinstall": "webpack --config ./webpack.production.config.js",
"build": "webpack --config webpack.dev.config.js",
Expand Down
4 changes: 2 additions & 2 deletions server/start.js → start.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ const path = require('path');
const express = require('express');
const morgan = require('morgan');
const socket = require('socket.io');
const socketRouter = require('./socketRouter.js');
const socketRouter = require('./server/socketRouter.js');

if (!process.env.APP_ID) {
console.error('Please set environment variables');
process.exit(1);
}

const app = express();
app.use(express.static(path.resolve(`${__dirname}/../dist`)));
app.use(express.static(path.resolve(`${__dirname}/dist`)));
app.use(morgan('combined'));

const server = http.createServer(app);
Expand Down

0 comments on commit c31321f

Please sign in to comment.