Skip to content

Commit

Permalink
Simplified (somewhat) the container working directory handling, as pr…
Browse files Browse the repository at this point in the history
…eviously I found some edge cases that caused issues with the static directory that was mounted
  • Loading branch information
PaulMaddox committed Aug 31, 2017
1 parent f7c8514 commit 5406a85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions invoke.go
Expand Up @@ -93,6 +93,7 @@ func invoke(c *cli.Context) {
DebugPort: c.String("debug-port"),
SkipPullImage: c.Bool("skip-pull-image"),
})

if err != nil {
log.Fatalf("Could not initiate %s runtime: %s\n", function.Runtime, err)
}
Expand Down
5 changes: 5 additions & 0 deletions start.go
Expand Up @@ -58,6 +58,11 @@ func start(c *cli.Context) {

for name, function := range functions {

cwd := filepath.Dir(filename)
if c.String("docker-volume-basedir") != "" {
cwd = c.String("docker-volume-basedir")
}

// Initiate a new Lambda runtime
runt, err := NewRuntime(NewRuntimeOpt{
Cwd: cwd,
Expand Down

0 comments on commit 5406a85

Please sign in to comment.