From 82b1506dba96680a3a7f95f8807b946c86363767 Mon Sep 17 00:00:00 2001 From: Ryo Konishi Date: Tue, 21 Aug 2018 00:30:25 +0900 Subject: [PATCH] add NANOBOX envr for application hooks --- generators/hooks/build/dev.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/generators/hooks/build/dev.go b/generators/hooks/build/dev.go index 84a303e3..ece04ee9 100644 --- a/generators/hooks/build/dev.go +++ b/generators/hooks/build/dev.go @@ -8,10 +8,14 @@ import ( ) func DevPayload(appModel *models.App) string { - // create an APP_IP evar evars := appModel.Evars + + // create an APP_IP evar evars["APP_IP"] = appModel.LocalIPs["env"] + // create a NANOBOX evar + evars["NANOBOX"] = "nanobox" + rtn := map[string]interface{}{} rtn["env"] = evars rtn["boxfile"] = appModel.DeployedBoxfile