Comments (3)
Hi there!
I was also experiencing a lot of issues with deployment, but what has worked for me is getting rid of this line:
https://github.com/shoumma/ReForum/blob/16117b77761d4044d99e784d82e187f079f56801/package.json#L37
Heroku dynamically assigns the port so hardcoding it here is not a great idea :)
Cheers!
from reforum.
still cannot figure out. any tricky small tips? really appreciate with it!
from reforum.
shoumma, i've figured it out finally. I had done following steps:
to solve the problem of above errors in terminal run $heroku config:set NODE_MODULES_CACHE=false
then run git commit -am 'disable node_modules cache' --allow-empty
then run git push heroku master
and now it can be pused but still i got heroku logs showing i got R10, H10, H20(time out errors), following are what i do to solve it:
- Create a file name exactly
Procfile
(no .txt, no. js just a file name Procfile in root directory. - put following codes in Procfile:
node server.js
- in terminal run
heroku ps:scale web=1
(or you can activate your dyno in the heroku management panel) git add .
thengit commit -m 'something here'
thengit push heroku master
then i got my website hosted on heroku! yeah~~~~
from reforum.
Related Issues (13)
- Server-side render for SEO
- Ttitle, picture and logo HOT 1
- Obsolete access method to Github
- Please add firebase db support
- [Bug] Incorrect discussions when the user is clicking on another thread in a discussion.
- Add tests HOT 7
- I cant get npm run start:dev to work
- Discord OAuth Systems
- User profile url change is not triggered HOT 1
- what has to go in callback URL field while registering a new OAuth application?
- set up on local server fail HOT 2
- Showing "Sorry, couldn't find the forum." all the time HOT 2
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 reforum.