Hi. 

Is it possible to run swagger in mock mode on Heolku? 

We are in development and I want to expose the mock JSON responses for 
testing purposes before implementation. 

Everything works fine on localhost. 

When I deploy to heroku, I changed the project.json startup script per the 
following: 


"scripts": {
"start": "swagger project start -m",
"test": "our api project test"
}


But, I get the following response from heoku:

2018-05-03T15:39:43.295580+00:00 app[web.1]: npm ERR! file sh
2018-05-03T15:39:43.286805+00:00 app[web.1]: sh: 1: swagger: not found
2018-05-03T15:39:43.295924+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2018-05-03T15:39:43.296170+00:00 app[web.1]: npm ERR! errno ENOENT
2018-05-03T15:39:43.296448+00:00 app[web.1]: npm ERR! syscall spawn
2018-05-03T15:39:43.298141+00:00 app[web.1]: npm ERR! ourapi@0.0.1 start: 
`swagger project start -m`

It seems I need to install swagger on my remote heroku instance to get that 
to run? I am looking into how to do that, but
wondering somebody here can confirm that it is possible to get swagger 
mocks up and running on Heroku?

Thanks in advance.











-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to