File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ class RustPlugin {
39
39
cargoFlags : "" ,
40
40
dockerTag : DEFAULT_DOCKER_TAG ,
41
41
dockerImage : DEFAULT_DOCKER_IMAGE ,
42
- servicePath : "asf"
43
42
} ,
44
43
( this . serverless . service . custom && this . serverless . service . custom . rust ) ||
45
44
{ }
@@ -61,15 +60,15 @@ class RustPlugin {
61
60
const dockerCLI = process . env [ 'SLS_DOCKER_CLI' ] || 'docker' ;
62
61
console . log ( "you're looking for this!" ) ;
63
62
console . log ( funcArgs ) ;
64
- const servicePath = ( funcArgs || { } ) . servicePath || this . servicePath ;
63
+ const path = this . custom . dockerPath || this . servicePath ;
65
64
const defaultArgs = [
66
65
'run' ,
67
66
'--rm' ,
68
67
'-t' ,
69
68
'-e' ,
70
69
`BIN=${ binary } ` ,
71
70
`-v` ,
72
- `${ servicePath } :/code` ,
71
+ `${ path } :/code` ,
73
72
`-v` ,
74
73
`${ cargoRegistry } :/root/.cargo/registry` ,
75
74
`-v` ,
You can’t perform that action at this time.
0 commit comments