[英]Node application failing to come up from Jenkins
我有一个通过 Jenkins 运行的 ansible 文件
shell: 'unzip -o p.zip'
args:
chdir: '/home/ec2-user/'
- pause: seconds=10
- name: install eslint
shell: 'npm install -g eslint --unsafe-perm=true --allow-root'
args:
chdir: '/home/ec2-user/'
- name: remove node-sass
shell: 'npm uninstall --save-dev node-sass'
args:
chdir: '/home/ec2-user/'
- name: install node-sass
shell: 'npm install --save-dev node-sass'
args:
chdir: '/home/ec2-user/'
failed_when: false
- pause: seconds=10
- name: start ng serve
shell: 'ng serve --port 4401 --host 0.0.0.0 --verbose &'
args:
chdir: '/home/ec2-user/'
但是应用程序正在被杀死。 当我手动运行最后一个命令时,它会启动服务:-- ng serve --port 4401 --host 0.0.0.0 --verbose &
同样的命令通过 ansible 失败
下面更改工作shell: 'nohup ng serve --port 4401 --host 0.0.0.0 > nohup.out 2>&1 &'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.