Thanks, Richard. I sorted this one shortly after I posted.
Seems I stupidly removed swagger when I updated as it wasn't in my local project.json. I forgot I had ran the npm install from the server. I added it back, this time as a dev-dependency so it appears in my start up script. Now everything is working. I should breath and think before I post sometimes... Thanks again. On Fri, May 4, 2018 at 2:21 PM, richard schneeman < [email protected]> wrote: > You can add a node dependency to your project like this > https://devcenter.heroku.com/articles/deploying-nodejs. > > > > On Fri, May 4, 2018 at 12:48 PM, Peter Dushkin <[email protected]> wrote: > > HI. > > > > Just getting up and running on heroku. > > > > I want to add swagger mocks to my heroku instance, allowing developers to > > get mock responses before we work on actual implementation. > > > > To achieve this, I changed the startup script to: > > > > "scripts": { > > "start": "swagger project start -m", > > "test": "odyssey api project test" > > } > > > > and then installed swagger globally: > > > > $ npm install -g swagger > > > > which put the swagger executable in: > > > > $ ~/.heroku/node/bin > > > > everything seemed OK. > > > > However, this AM, I checked and the swagger executable is no longer > there. > > > > Now I get: > > > > 2018-05-04T17:33:13.610021+00:00 app[web.1]: sh: 1: swagger: not found > > 2018-05-04T17:33:13.614637+00:00 app[web.1]: npm ERR! file sh > > 2018-05-04T17:33:13.614845+00:00 app[web.1]: npm ERR! code ELIFECYCLE > > 2018-05-04T17:33:13.615061+00:00 app[web.1]: npm ERR! errno ENOENT > > 2018-05-04T17:33:13.615195+00:00 app[web.1]: npm ERR! syscall spawn > > 2018-05-04T17:33:13.616219+00:00 app[web.1]: npm ERR! [email protected] start: > > `swagger project start -m` > > 2018-05-04T17:33:13.616307+00:00 app[web.1]: npm ERR! spawn ENOENT > > > > Odd... can somebody help me understand this? > > > > > > > > > > -- > > -- > > You received this message because you are subscribed to the Google > > Groups "Heroku" group. > > > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > > http://groups.google.com/group/heroku?hl=en_US?hl=en > > > > --- > > You received this message because you are subscribed to the Google Groups > > "Heroku Community" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to [email protected]. > > For more options, visit https://groups.google.com/d/optout. > > > > -- > Richard Schneeman > https://www.schneems.com > > -- > -- > You received this message because you are subscribed to the Google > Groups "Heroku" group. > > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en_US?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Heroku Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/heroku?hl=en_US?hl=en --- You received this message because you are subscribed to the Google Groups "Heroku Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
