Serverless-offline: offline start --exec <script> not working

Created on 14 Feb 2020  路  5Comments  路  Source: dherault/serverless-offline

Trying to execute as scoped execution like:
sls offline start --exec "./runTests.sh" --config serverless-functions.yml
This still opens up interactive window. Shell scripts won't be executed.

in yml config:
useDocker: true
to make it work with golang.

sls offline version: 6.0.0-alpha.66

Most helpful comment

We had a similar issue but have switch to using this package instead to replace the functionality:
https://www.npmjs.com/package/start-server-and-test

All 5 comments

Exec is not supposed to work in v6, but is added to the roadmap.

hey @dherault is there an ETA for "--exec" to be added to v6?

Where can we see the roadmap?

We had a similar issue but have switch to using this package instead to replace the functionality:
https://www.npmjs.com/package/start-server-and-test

@jacsamell do you have an example?
start-server-and-test is timing out for me even though serverless-offline says it is ready
thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stunningpixels picture stunningpixels  路  3Comments

Rafaelsk picture Rafaelsk  路  4Comments

mattmeye picture mattmeye  路  4Comments

Dong9769 picture Dong9769  路  4Comments

stonebraker picture stonebraker  路  3Comments