why the nodemon run on my backend forever if I inappropriately close it? - nodemon

when I install my nodemon I used --force, but now if I not close my nodemon with clt + C, it will run at the backend forever, I could not use my same localhost:3000 again.
The only way I can close it is restart my computer.
Does anyone know how to solve it?
Thank you in advance.

add this to the bottom of your root file
process.on('SIGINT', () => process.exit(1));
And also if the error still happens you dont need to restart your system, just simple kill the port 3000 and you will be able to reuse it

Related

How to update Django file from local machine to Ubuntu development server(AWS EC2)?

I am developing an app in my local machine(windows OS) and I am using an AWS Ubuntu Server to show updated website to the client in another country. But my problem is that when i am uploading python file through FileZilla Sftp, its not make any change on the server till I reboot ubuntu server using "sudo reboot"
I am tired of doing this process again and again. I read about git version control can help me with this situation but I don't know how to do it.
Please help me I am stuck from 3 days on this.
You don't need to reboot all the time. What you should do is simply check the running service or process using "ps -ef | grep processName" and kill it(kill -9 'processId') and restart the process again.

executing python script for ssh connection not working

I tried to execute a python script that will extablish an SSH connection but it won't work. It is successful when i do it manualy over the python shell, though.
I run a packet capture and i saw that my client machine is resetting the connection for some reason. is it a bug or it just wouldn't work with python2.7?
please help.
Thanks,
Richard
We don't have much information since you didn't send any code, however did you check your firewall parameters ? Maybe your software is not allowed to run the connection

Django-Gunicorn-Nginx Why do I get an Internal server error every time I restart Gunicorn?

I set up a droplet on digital ocean using the one-click installer. I host my code on a git repo. and I use git pull to merge changes, followed by service gunicorn reload to restart gunicorn. The problem is that everytime I do this and try to visit my site I get an 'internal server error' messages, and after I refresh once or twice the actual page loads.
It is strange because I get the message even if I wait for a while (15 minutes) before visiting the web page, so I'm not sure if I get this because gunicorn was still restarting or for some other reason. Any hints on what might be going on ?
--graceful-timeout or graceful_timeout
Otherwise the workers will stick around until the next request seemingly.
When set to 0 will cause the workers and the master to instantly quit.
Hope it helps.

MAMP 3 not restarting after php.ini change

Every time I make a change to php.ini through FILE > EDIT TEMPLATE > PHP > appropriate ini file, MAMP won't restart. I try using terminal to quit apache and mysql but it makes no difference and tells me they aren't running. I'm convinced there is some local non-mamp server running that is clashing with it but am not clever enough to work out what. My only solution is to restart my Mac (Macbook Pro Early 2013 running OSX 10.9.3) every time I make a change to php.ini. Which is not the end of the world but just a bit annoying.
Any ideas?
I think after you make changes in php.ini and restart, there is another application who take your port 80 and apache can't start.
so to do a test you can close application like : skype, teamviewer,...
or change in there settings to not use this port.
or you can change the apache port to something like : 8094

Wamp - no operation is available

I just installed wamp.
I started the application and 2 things:
I keep getting red light.
when I press the icon nothing happens, I am pretty sure it should have come up with a menu or something.
I can't restart or nothing...
I am administrator, I tried reinstalling.
ideas?
Thanks
Is there any other program using port 80 ? so that apache can't start ?
tried already to start the services by hand?
Start Menu - Run - Services.msc
and look for apache and mysql.
What OS are you running? make sure you haven't IIS running.