update php tutorial

This commit is contained in:
Chad Arimura
2017-05-26 15:51:14 -07:00
parent b49337d4e0
commit 63b9e1ce20
6 changed files with 33 additions and 17 deletions

View File

@@ -40,10 +40,10 @@ That's it!
In Ruby, we create a [Gemfile](http://bundler.io/gemfile.html) file in your function directory, then run:
```sh
docker run --rm -it -v ${pwd}:/worker -w /worker funcy/ruby:dev bundle install --standalone --clean
fn build
```
Ruby doesn't pick up the gems automatically, so you'll have to add this to the top of your `func.rb` file:
This will rebuild your gems and vendor them. Ruby doesn't pick up the gems automatically, so you'll have to add this to the top of your `func.rb` file:
```ruby
require_relative 'bundle/bundler/setup'