read

If you're trying to deploy a Rails app with Capistrano and you get a NoMethodError: undefined method 'match' for nil:NilClass with a config/deploy.rb:1:in '<top (required)>' trace, chances are you're using ENV variables to keep the server IP out of the deploy.rb file and those variables are not currently sourced in your profile; do that and you'll be fine. If like me you use dotenv you'll need to run source .env then try to deploy again, it should all work now.

Blog Logo

Alessio Fanelli

I'm a full stack developer with a love for sports.


Published

Image

Alessio Fanelli

Stay Sharp.

Back to Overview