discord.js-heroku | depth guide on deploying your Discord.js bot | Platform As A Service library
kandi X-RAY | discord.js-heroku Summary
kandi X-RAY | discord.js-heroku Summary
An in-depth guide on deploying your Discord.js bot on Heroku
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of discord.js-heroku
discord.js-heroku Key Features
discord.js-heroku Examples and Code Snippets
Community Discussions
Trending Discussions on discord.js-heroku
QUESTION
I've encountered quite a little bit issue. I've created a local git repositiory, set up recommended settings as adviced here, and copied all files used by the bot into that repository. Then I added all files, commited changes and pushed into Heroku repository. However without the GitHub repository. I have very important reason for not creating GitHub repository as the bot token is inside a configuration JSON file, which is actually part of the source code. I do not want that token to become visible in public.
However, things didn't quite end up well. The Heroku log says the app crashed because there was no entry point set. I can only guess that there was a mistake in app configuration on the server side, or made mistake while transporting files. Can I recover the app somehow? Or do I need to make completely fresh new app and install all parts one by one independently?
This is what Heroku log says:
...ANSWER
Answered 2018-Sep-11 at 16:06It says 2018-09-11T14:02:32.177929+00:00 heroku[web.1]: Process exited with status 1
2018-09-11T14:02:32.191335+00:00 heroku[web.1]: State changed from starting to crashed
2018-09-11T14:02:32.092366+00:00 app[web.1]: npm ERR! missing script: start
Which means it's looking for a script named "start" in your package.json file. Usually, a "start" script simply means "node *file_name*
".
In your package.json file, add
"scripts": {
"start": "node *your main app filename*",
}
What about your question of "Installing everything again", i don't quite understand. Try adding the scripts i mentioned, commiting them to git and look if it'll solve the problem.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install discord.js-heroku
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page