Skip to content

Commit

Permalink
Fix heroku deploys (#27)
Browse files Browse the repository at this point in the history
* Move rejection warning

* Fix opn rejection

* Remove opn all together
  • Loading branch information
Michiel Leyman committed Sep 4, 2017
1 parent 74e853b commit 68ad25a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 5 additions & 1 deletion build/dev-server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
require('./check-versions')()

process.on('unhandledRejection', (reason) => {
console.log('REJECTION', reason)
})

var config = require('../config')
if (!process.env.NODE_ENV) {
process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV)
Expand Down Expand Up @@ -77,7 +81,7 @@ devMiddleware.waitUntilValid(() => {
console.log('> Listening at ' + uri + '\n')
// when env is testing, don't need open it
if (autoOpenBrowser && process.env.NODE_ENV !== 'testing') {
opn(uri)
//
}
_resolve()
})
Expand Down
4 changes: 0 additions & 4 deletions build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ var HtmlWebpackPlugin = require('html-webpack-plugin')
var ExtractTextPlugin = require('extract-text-webpack-plugin')
var OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')

process.on('unhandledRejection', (reason) => {
console.log('REJECTION', reason)
})

var env = process.env.NODE_ENV === 'testing'
? require('../config/test.env')
: config.build.env
Expand Down

0 comments on commit 68ad25a

Please sign in to comment.