Skip to content

Commit ef46a89

Browse files
author
Andrew Klitzke
committed
asdf
1 parent 4f37ce9 commit ef46a89

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class RustPlugin {
3939
cargoFlags: "",
4040
dockerTag: DEFAULT_DOCKER_TAG,
4141
dockerImage: DEFAULT_DOCKER_IMAGE,
42-
servicePath: "asf"
4342
},
4443
(this.serverless.service.custom && this.serverless.service.custom.rust) ||
4544
{}
@@ -61,15 +60,15 @@ class RustPlugin {
6160
const dockerCLI = process.env['SLS_DOCKER_CLI'] || 'docker';
6261
console.log("you're looking for this!");
6362
console.log(funcArgs);
64-
const servicePath = (funcArgs || {}).servicePath || this.servicePath;
63+
const path = this.custom.dockerPath || this.servicePath;
6564
const defaultArgs = [
6665
'run',
6766
'--rm',
6867
'-t',
6968
'-e',
7069
`BIN=${binary}`,
7170
`-v`,
72-
`${servicePath}:/code`,
71+
`${path}:/code`,
7372
`-v`,
7473
`${cargoRegistry}:/root/.cargo/registry`,
7574
`-v`,

0 commit comments

Comments
 (0)