Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'yarn start serve' does not start the server #250

Open
smuralimohan opened this issue Dec 30, 2021 · 1 comment
Open

'yarn start serve' does not start the server #250

smuralimohan opened this issue Dec 30, 2021 · 1 comment

Comments

@smuralimohan
Copy link

Hi,

When I ran the command - yarn start serve , the following shows up on the console, but the webserver is not running at all.

_$ nps serve
nps is executing serve : nps banner.serve && nodemon --watch src --watch .env
nps is executing banner.serve : ts-node --transpile-only ./commands/banner.ts serve


/ |/ _ \ '\ \ / / _
__ \ / | \ V / /
|
/_
|_| _/ __|

[nodemon] 1.18.9
[nodemon] to restart at any time, enter rs
[nodemon] watching: E:\Work\TymePe\samples_server\express-typescript-boilerplate\src/**/* .env_

I tried telnetting using- telnet localhost 3000, telnet 127.0.0.1 3000 and telnet 0.0.0.0 3000 etc... but it says that the port is not open.
Connecting To 127.0.0.1...Could not open connection to the host, on port 3000: Connect failed

Am I missing something?

@smuralimohan
Copy link
Author

I have also put the following statement in src/loaders/expressLoader.ts, but nothing is printed to the console.

export const expressLoader: MicroframeworkLoader = (settings: MicroframeworkSettings | undefined) => {
console.log('Server listening on port::', env.app.port);

Am I missing any configuration or set up steps? Please help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant