Closed
Description
Description
When trying to run the default project with ruby2.5 runtime, get the following error:
2018-12-17 16:58:29 * Running on http://127.0.0.1:3000/ (Press CTRL+C to quit)
2018-12-17 16:58:53 Invoking app.lambda_handler (ruby2.5)
Fetching lambci/lambda:ruby2.5 Docker container image.......
2018-12-17 16:58:53 Mounting /home/daver/code/sam-app/hello_world as /var/task:ro inside runtime container
Init error when loading handler app.lambda_handler
{
"errorMessage": "cannot load such file -- app",
"errorType": "Init<LoadError>",
"stackTrace": [
"/var/lang/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'",
"/var/lang/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'"
]
}
Steps to reproduce
// Install Docker and start service
// Install Ruby 2.5 via rvm
// Install SAM local 0.9.0 via python pip venv
$ sam init --runtime ruby2.5
$ cd sam-app/
$ bundle install --deployment --path hello_world/vendor/bundle
$ sam local start-api
Observed result
When trying to navigate to http://localhost:3000/hello
2018-12-17 16:58:29 * Running on http://127.0.0.1:3000/ (Press CTRL+C to quit)
2018-12-17 16:58:53 Invoking app.lambda_handler (ruby2.5)
Fetching lambci/lambda:ruby2.5 Docker container image.......
2018-12-17 16:58:53 Mounting /home/daver/code/sam-app/hello_world as /var/task:ro inside runtime container
Init error when loading handler app.lambda_handler
{
"errorMessage": "cannot load such file -- app",
"errorType": "Init<LoadError>",
"stackTrace": [
"/var/lang/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'",
"/var/lang/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'"
]
}
Expected result
No error
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
- OS: Linux
sam --version
: 0.9.0
Metadata
Metadata
Assignees
Labels
No labels