truffle-box / react-box

Truffle, Webpack and React boilerplate.
https://truffle-box.github.io/
MIT License
736 stars 251 forks source link

truffle - reactbox - heroku deployment error nginx: [emerg] invalid number of arguments in "root" directive in ./config/nginx.conf:40 #35

Closed pratgen closed 5 years ago

pratgen commented 6 years ago

Hi, I am facing issue with deployment on heruku. I did not modify a single line of code, using Linux ubuntu and node js 8.9. Truffle v4.0.4 (core: 4.0.4) Solidity v0.4.18 (solc-js)​ Here are list of commands I run to deploy on heroku mkdir test cd test truffle unbox react (this is as per guidence at reactbox https://github.com/mars/create-react-app-buildpack) git init heroku create pratikmrpv --buildpack https://github.com/mars/create-react-app-buildpack.git

git add . git commit -m 'first commit' git push heroku master heroku open The application does not run shows message " Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. " Here is complete log. https://www.dropbox.com/s/x1mm0o2nc3xsbnj/heroku%20error%20log.txt?dl=0

before runing those commands I have added below code in static.json { "root": "build_webpack /" } as suggested by the guide. https://medium.com/taipei-ethereum-meetup/ethereum-dapp-tutorial-push-button-cae3810086a4 You can translate it to English via google translate.

thank you ​​

pratgen commented 6 years ago

Guy's I found the error, There is an extra space in my static.json the correct one is { "root": "build_webpack/" } Thank you so much.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 5 years ago

This issue has been closed, but can be re-opened if further comments indicate that the problem persists. Feel free to tag maintainers if no there is no reply to further comments.