Skip to content

Commit

Permalink
Prepare app for heroku deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Akash-M committed Jan 16, 2018
1 parent d405d44 commit e709f2a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "1.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve --port 4200",
"start:dev": "ng serve --port 4200",
"start": "node server.js",
"build:dev": "ng build --dev",
"build:prod": "ng build --prod --aot",
"test": "ng test",
Expand All @@ -12,8 +13,8 @@
"postinstall": "npm run build:prod"
},
"engines": {
"node": "^8.9.1",
"npm": "^5.5.1"
"node": "^8.9.4",
"npm": "^5.6.0"
},
"private": true,
"dependencies": {
Expand All @@ -36,13 +37,15 @@
"bootstrap-material-design": "0.5.10",
"bootstrap-notify": "3.1.3",
"core-js": "2.4.1",
"express": "^4.16.2",
"jquery": "3.2.1",
"moment": "2.18.1",
"ng2-order-pipe": "^0.1.5",
"ng2-search-filter": "^0.3.1",
"ng2-tree": "2.0.0-alpha.10",
"ngx-pagination": "^3.0.3",
"rxjs": "5.1.0",
"typescript": "2.2.0",
"typings": "^2.1.1",
"zone.js": "0.8.4"
},
Expand Down
6 changes: 6 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const express = require('express');
const app = express();

app.use(express.static(__dirname + '/dist'));

app.listen(process.env.PORT || 8080);

0 comments on commit e709f2a

Please sign in to comment.