bones icon indicating copy to clipboard operation
bones copied to clipboard

Production build before deployment

Open knxyzkn opened this issue 8 years ago • 2 comments

Hi! I have been trying to achieve the production build before deploying on Heroku. I have this React Chrome extension that tells me whether a website is using the production build or development build of React. When I use create-react-app, I'm able to achieve the production build by following the instructions they have given. However, when I use Bones, I'm unable to achieve the production build. I see that the documentation says we have to use npm start to get the production build, but I have been unsuccessful thus far. How can I do the production build before deploying to Heroku? I have a Procfile that says web: node server/start.js

knxyzkn avatar Sep 15 '17 15:09 knxyzkn

I was having this problem too, even when using the deploy heroku script. My fix/workaround is to remove build from the .gitignore temporarily and then manually deploy via the usual flow (git add . / git commit -m "[your message]" / git push heroku master) since the heroku deploy script that uses the build branch script doesn't work for me, I get an error in the console saying I tried to deploy from a non-master branch.

chloerice avatar Sep 20 '17 06:09 chloerice

Chloe, Thanks for your reply! I looked at .gitignore, but I didn't spot any build file there. What did you mean when you said the below?

remove build from the .gitignore temporarily

knxyzkn avatar Sep 21 '17 15:09 knxyzkn