Closed Intertranslations closed 3 weeks ago
For anyone that will come up with this problem since I had no feedback after 3 weeks.
The Accessing non-existent property 'padLevels' seems to be an incompatibility with the versions used but does not affect the run of the playbook. If you add a failed_when
when getting the forever_list
you may proceed with the playbook as described in the book.
In chapter 4 when deploying the app.js app and following the example as laid out in the book and the current git I couldn't get the app.js to run correctly
Adding a debug module to get the contents of
forever_list
I got the following error.Running the command
forever start /usr/local/opt/node/app/app.js
manually in the server, I get the following errorpretty much the same error as with debugging the
forever_list var
.I consulted the web about this error but couldn't find a useful solution so I added a scripts section in the package json, run manually the app.js and managed to get the web page showing in port 80.
However I would like to know the why this error occurred and how to solve it. Can anyone suggest the why or how to fix??
The content of the playbook, app and package follows below
app.js: vanilla as per git
package.json
playbook.yml: the part pertaining to installing npm, forever and running the app