How to automatically start parse-server npm start

Posted May 10, 2017 5.3k views
Linux CommandsUbuntu 16.04

How to automatically start parse-server npm start?

I made an application and tis already published on the google store but i need to open two terminal and connect to the server and type the commands bellow in two separate terminal how can i automatic start it ?

*Terminal 1: *
cd parse-server-example
npm start

*Terminal 2: *
parse-dashboard –config config.json –allowInsecureHTTP=1

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Hi @gimenojude

I’m not sure what you’re asking, but it seems like you’re not using a process manager to start the Node.js app.

Or maybe you should just use this command instead, to run it without a web server:

cd parse-server-example
npm run-script parse-dashboard --config config.json --allowInsecureHTTP=1
by Brennen Bearnes
Node.js is an open source JavaScript runtime environment for easily building server-side and networking applications. Node.js applications can be run at the command line but this guide focuses on running them as a service using PM2, so that they will automatically restart on reboot or failure, and can safely be used in a production environment.

Hi @hansen about my question the application will only work or start when i open two terminal and and npm start the directory cd parse-server-example and on the other terminal i need to put this npm run-script parse-dashboard –config config.json –allowInsecureHTTP=1 to make it work how can i automatically start this two without opening the terminal or console