When I close putty after running 'serve -s build' session stops and my React app stops working
Hello! I created a small React application using create-react-app. I want to deploy this app on Linux server, so I use the command npm run build, which creates 'build' folder. Then I move 'build' folder to server and use the command serve -s build. The app works fine, but there's the problem - when I close putty (which I use to connect to my server) session closes and React app stops. I tried to use the command like this serve -s build &, but that doesn't help and every time I close the session the app stops
Could you please help and clarify what is the right way to deploy React app on server? How to make it work even when I close putty?
Thanks for your time