DEV Community

Discussion on: Building AWS Lambdas for Real World using Ruby and Serverless Framework

Collapse
 
rodg_co profile image
Rodrigo Garcia Couto • Edited

I've managed my deployment pipeline in a different way, using the serverless-hooks-plugin and adding the following to the serverless.yml:

plugins:
  - serverless-hooks-plugin

custom:
  hooks:
    package:initialize:
      - bundle install --path vendor/bundle --without test development --clean
      - rm -rf ./vendor/bundle/ruby/2.5.0/cache

    package:finalize:
      - bundle install --path vendor/bundle --with test development --clean