You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to custom the service path when running built-in serverless commands such as deploy, package. Right now, it always set to .serverless
Description
I had a mono-repo that contains some micro-services written in TypeScript, each micro-service has it own serverless.yml file
Then when running any serverless command, I will have to provide --config option i.e. sls package --config /users/serverless.yml. Since we use serverless-webpack plugin to bundle the TS files so if we run the serverless command inside each service directory, we will get an error
I wanted to build multiple services parallel to speed up my deployment time, however, if I run same serverless command i.e. package some files created by package command will be overridden because it writes to the same directory which is .serverless.
The package command currently writes the files to the .serverless directory then move to target package directory (use --package package-dir option)
So my question is how can change the default service path .serverless (the value of serverless.config.servicePath property)?
Similar or dependent issues:
The text was updated successfully, but these errors were encountered:
Here is an error sometimes occurs when running package command parallel for multiple services
Serverless: Bundling with Webpack...
Serverless: Bundling with Webpack...
28 modules
34 modules
Serverless: Package lock found - Using locked versions
Serverless: Packing external modules: ....
Serverless: Package lock found - Using locked versions
Serverless: Packing external modules: .....
Serverless: Packaging service...
Serverless: Packaging service...
Error --------------------------------------------------
Error: ENOENT: no such file or directory, open '.serverless/users-service.zip'
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
This is a Feature Proposal
I wanted to custom the service path when running built-in serverless commands such as deploy, package. Right now, it always set to
.serverless
Description
--config
option i.e.sls package --config /users/serverless.yml
. Since we useserverless-webpack
plugin to bundle the TS files so if we run the serverless command inside each service directory, we will get an errori.e. package
some files created bypackage
command will be overridden because it writes to the same directory which is.serverless
.package
command currently writes the files to the.serverless
directory then move to targetpackage
directory (use--package package-dir
option)So my question is how can change the default service path
.serverless
(the value ofserverless.config.servicePath
property)?Similar or dependent issues:
The text was updated successfully, but these errors were encountered: