My Project doesnt seem to want to start up

When I go to my Live App link, it just says starting. I have left it on loading for some hours to see if any connection will happen with no success. https://aecor-js.glitch.me/
My project runs fine when it is started with the console.
project name: Aecor.js

I’m trying to find in your project your express app. I can see you have express in your package.json

You need to set a express server to get a response with your live app request.

This is a simple hello world with express…

const express = require('express');
const app = express();

/* Http request */
app.get('/', (req, res) => {
	res.send('Hello world!');
});

// listen for requests :)
var listener = app.listen(process.env.PORT, function() {
  console.log('Your app is listening on port ' + listener.address().port);
});

Anyway. It is your discord bot running? Do you need help to keep it awake?

So this should go in its own .js(json) file or in package.json
EDIT: Nvm it goes in my aecor.js file

Alright so i got it working now, thanks chief!

Great. You should take care of your data/settings.json. We can see your bot token there!

1 Like