L
L
Lavrov952021-07-01 23:18:24
Node.js
Lavrov95, 2021-07-01 23:18:24

Why doesn't crontab start node server on reboot?

In my cron I wrote @reboot /var/www/project/script.sh

My script.sh

#!/bin/bash
cd /var/www/project && \
npm start


The strange thing is that when I run the command manually it works.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question