Skip to content

Commit

Permalink
feat #127: Настроил Heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
Borodin committed Jan 27, 2016
1 parent 7b2ad21 commit 043d28e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
6 changes: 6 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "tour-player",
"scripts": {},
"env": {},
"addons": []
}
11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
var express = require('express');
var app = express();

app.set('port', (process.env.PORT || 5000));

app.use(express.static(__dirname + '/example'));
app.use('/build', express.static(__dirname + '/build'));

app.listen(app.get('port'), function() {
console.log('Node app is running on port', app.get('port'));
});
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "",
"repository": {},
"scripts": {
"postinstall": "bower i && gulp build",
"postinstall": "./node_modules/bower/bin/bower i && ./node_modules/gulp/bin/gulp.js build",
"start": "node index.js",
"test": "gulp lint"
},
"repository": {
Expand Down Expand Up @@ -32,10 +33,11 @@
}
],
"license": "MIT",
"devDependencies": {
"dependencies": {
"bower": "^1.5.3",
"browser-sync": "^2.10.0",
"del": "^2.0.2",
"express": "^4.13.3",
"gulp": "^3.9.0",
"gulp-autoprefixer": "^3.0.2",
"gulp-cache": "^0.3.0",
Expand Down

0 comments on commit 043d28e

Please sign in to comment.