【问题标题】:Raspberry pi load app at startup / Raspberry pi cargar app al iniciarRaspberry pi 在启动时加载应用程序 / Raspberry pi cargar app al iniciar
【发布时间】:2020-06-30 22:05:13
【问题描述】:

我的项目在 /home/pi/app 以 npm start 开头

如何在启动操作系统时启动应用程序?

**** 西班牙文

Mi proyecto esta en /home/pi/app Arranca la aplicación con npm start

Cómo puedo hacer que la app se inicie al principio?

服务 => 它不起作用


[Unit]
Description=appvi
After=netwwork-online.target

[Service]
WorkingDirectory=/home/pi/appvi
ExecStart=/usr/local/bin/npm start
Restart=always
StandardOuput=syslog
StandardError=syslog
SyslogIdentifier=notell
User=pi
Group=pi
Enviroment=NODE_ENV=production

[Install]
WantedBy=multi-user.target

【问题讨论】:

标签: node.js npm raspberry-pi electron


【解决方案1】:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-16
    • 1970-01-01
    • 1970-01-01
    • 2015-08-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多