Skip to content

Commit fd2f1cf

Browse files
authored
Merge pull request #573 from Lukas-dev-threads/prefer-npx-to-run-npm-package
Fix running npm package forever in chapter 4
2 parents ca886e8 + cb8b77a commit fd2f1cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nodejs/provisioning/playbook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
npm: "path={{ node_apps_location }}/app"
3939

4040
- name: Check list of running Node.js apps.
41-
command: /usr/local/bin/forever list
41+
command: npx forever list
4242
register: forever_list
4343
changed_when: false
4444

4545
- name: Start example Node.js app.
46-
command: "/usr/local/bin/forever start {{ node_apps_location }}/app/app.js"
46+
command: "npx forever start {{ node_apps_location }}/app/app.js"
4747
when: "forever_list.stdout.find(node_apps_location + '/app/app.js') == -1"

0 commit comments

Comments
 (0)