Comments (3)
I discovered that when you click on 'Open app' it triggers 'web' in heroku, so it will run npm start again, this will happen every time that the user enters the auth link displayed in the console or clicks on 'Open app' (wich are the same) as I understand.
More information in the following links:
https://devcenter.heroku.com/articles/dynos#dyno-configurations
https://devcenter.heroku.com/articles/dyno-types
https://stackoverflow.com/a/38965136
I tried enabling only the 'worker' and disabling 'web' but when I try to authenticate by pressing 'Open app', it displays in the console:
heroku[router]: at=error code=H21 desc="Backend connection refused" method=GET path="/" host=twitch-spotify-request-bot.herokuapp.com request_id=eae730a9-eca3-4096-9b94-0daad5803b61 fwd="177.227.33.136" dyno=web.1 connect=0ms service= status=503 bytes= protocol=https
So you are forced to allow the 'web' to be enabled. If you enable both options, it's still not working.
The solution for this should be one of the following:
- Get the 'worker' to work (hehe) with express without using the 'web' (Basically, investigate a way to run express in Heroku without using 'web' and just using something like 'worker')
- Change the host service from Heroku to another (I heard about Vercel, Netlify, DigitalOcean, but I don't know If those have a free plans and easy usage like Heroku)
from twitch-spotify-request-bot.
Thanks @IvanGodinez21 for investigating! I have some experience with Vercel and Netlify and both do have free tiers, but the setup process may require more technical knowledge than Heroku.
from twitch-spotify-request-bot.
Due to some issues with Heroku and the fact that they removed their free tier, I've removed the recommendations to use it as it was causing confusion. If this changes in the future I will update this ticket.
from twitch-spotify-request-bot.
Related Issues (8)
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 twitch-spotify-request-bot.