I needed to do a little work because I use browsersync:
package.json
"scripts": { "start": "gulp serve" }
gulp.js
gulp.task('serve', function() { browserSync({ server: { baseDir: './' }, port: process.env.PORT || 5000 }); gulp.watch(['*.html', 'css/*.css', 'js/*.js', 'views/*.html', 'template/*.html', './*.html'], {cwd: 'app'}, reload); });
Configuring a port that is an environment port is important to prevent deployment errors in Heroku. I did not need to install a postinstall script.
Patrick_870206 May 20 '17 at 23:09 2017-05-20 23:09
source share