Skip to content

Commit

Permalink
Package the mysql2 gem and talk to RDS from AWS Lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
adomokos committed May 31, 2016
1 parent 6c74f43 commit 2f307f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Expand Up @@ -35,6 +35,8 @@ package: ## Packages the code for AWS Lambda
@mkdir $(LAMBDADIR)/lib/app
@cp hello_ruby/lib/hello.rb $(LAMBDADIR)/lib/app/hello.rb
@cp -pR hello_ruby/vendor $(LAMBDADIR)/lib/
@rm -fr $(LAMBDADIR)/lib/vendor/ruby/2.2.0/extensions
@tar -xzf resources/mysql2-0.3.18-linux.tar.gz -C $(LAMBDADIR)/lib/vendor/ruby/
@rm -f $(LAMBDADIR)/lib/vendor/*/*/cache/*
@mkdir -p $(LAMBDADIR)/lib/vendor/.bundle
@cp resources/bundler-config $(LAMBDADIR)/lib/vendor/.bundle/config
Expand Down
Binary file added resources/mysql2-0.3.18-linux.tar.gz
Binary file not shown.

0 comments on commit 2f307f6

Please sign in to comment.