From e261daeec6b4b9f19afb5d193e41d92ed2d4be66 Mon Sep 17 00:00:00 2001 From: Michal Cichra Date: Thu, 30 Nov 2017 23:28:03 +0100 Subject: [PATCH] [cli] detect local rover installation --- CHANGELOG.md | 6 ++++++ gateway/bin/apicast | 2 ++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c557cf2d..a881ee5fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## Unreleased + +## Fixed + +- Detecting local rover installation from the CLI [PR #519](https://github.com/3scale/apicast/pull/519) + ## [3.2.0-alpha2] - 2017-11-30 ## Added diff --git a/gateway/bin/apicast b/gateway/bin/apicast index 8c4e15e19..054293d0f 100755 --- a/gateway/bin/apicast +++ b/gateway/bin/apicast @@ -10,6 +10,8 @@ my $bindir = $apicast . '/bin'; my $lua_path = $ENV{LUA_PATH}; my $cwd = getcwd(); +$ENV{PATH} .= ":$cwd/lua_modules/bin"; + chomp(my $rover = `which rover`); if ($rover) { $rover = abs_path($rover) }