Comments (3)
Have you tried heroku config:set NPM_CONFIG_PRODUCTION=false
from express-react-boilerplate.
Yes, I did that but there were few more issues with port binding as this command deploy the complete app including devdependencies which also increases the size from 34 MB to 88MB
from express-react-boilerplate.
I updated package.json. You can change "scripts" option as belows.
"scripts": {
"start": "babel-node server/app.js",
"clean": "rimraf node_modules && rimraf dist && npm install",
"webpack:dev": "cross-env NODE_ENV=development webpack --config ./webpack/webpack.config.dev.js",
"webpack:prod": "cross-env NODE_ENV=production NODE_OPTIONS=--openssl-legacy-provider webpack --config ./webpack/webpack.config.prod.js",
"build:dev": "rimraf dist && npm run webpack:dev && npm run start",
"build": "rimraf dist && npm run webpack:prod && npm run start",
"migrate": "knex migrate:latest",
"migrate:make": "knex migrate:make",
"migrate:rollback": "knex migrate:rollback",
"lint": "eslint client server; exit 0"
},
from express-react-boilerplate.
Related Issues (15)
- kinex.js local file reference to migrations HOT 3
- API Get request Error
- Unable to login or register outside of localhost HOT 3
- Warning: Cannot update a component from inside the function body of a different component.
- User Signup failed HOT 1
- How to debug the Node JS code in this project?
- Error on socketpath
- build:prod has error
- Cannot hot reload application HOT 2
- ER_NOT_SUPPORTED_AUTH_MODE
- [Error] Violation of following Content Security Policy directive HOT 3
- Debug
- Migration failed given that knex timestamp has no default values and is set to not null by default
- Issue with knex migration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from express-react-boilerplate.