Permalink
Browse files

Packate/deploy the app with faker

  • Loading branch information...
1 parent 3a3cfe8 commit 8fa581ded4007f3ae2b5a1ace2da79991f07b75e @adomokos committed May 27, 2016
Showing with 9 additions and 2 deletions.
  1. +8 −2 Makefile
  2. +1 −0 hello_ruby/.bundle/config
View
@@ -32,11 +32,17 @@ package: ## Package the code for AWS Lambda
@tar -xzf resources/traveling-ruby-20150715-2.2.2-linux-x86_64.tar.gz -C $(LAMBDADIR)/lib/ruby
@mkdir $(LAMBDADIR)/lib/app
@cp hello_ruby/lib/hello.rb $(LAMBDADIR)/lib/app/hello.rb
+ @cp -pR hello_ruby/vendor $(LAMBDADIR)/lib/
+ @rm -f $(LAMBDADIR)/lib/vendor/*/*/cache/*
+ @mkdir -p $(LAMBDADIR)/lib/vendor/.bundle
+ @cp resources/bundler-config $(LAMBDADIR)/lib/vendor/.bundle/config
+ @cp hello_ruby/Gemfile $(LAMBDADIR)/lib/vendor/
+ @cp hello_ruby/Gemfile.lock $(LAMBDADIR)/lib/vendor/
@cp resources/wrapper.sh $(LAMBDADIR)/hello
@chmod +x $(LAMBDADIR)/hello
@cp resources/index.js $(LAMBDADIR)/
- cd $(LAMBDADIR) && zip -r hello_ruby.zip hello index.js lib/
- mkdir deploy
+ @cd $(LAMBDADIR) && zip -r hello_ruby.zip hello index.js lib/
+ @mkdir deploy
cd $(LAMBDADIR) && mv hello_ruby.zip ../deploy/
@echo '... Done.'
@@ -1,3 +1,4 @@
---
BUNDLE_PATH: vendor
+BUNDLE_WITHOUT: development
BUNDLE_DISABLE_SHARED_GEMS: true

0 comments on commit 8fa581d

Please sign in to comment.