From 0805a196ac41f63b96ff6e733027f3703bd565a1 Mon Sep 17 00:00:00 2001 From: Justin Krup Date: Wed, 22 Aug 2018 23:20:14 -0400 Subject: [PATCH] Add now.json to enforce cloud v1 --- package.json | 2 +- src/api/docker.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0062e38..fb84394 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meteor-now", - "version": "0.6.1", + "version": "0.7.0", "description": "Deploy meteor apps with one command using now.sh (https://zeit.co/now)", "repository": "https://github.com/jkrup/meteor-now", "author": "Justin Krup", diff --git a/src/api/docker.js b/src/api/docker.js index 16cd057..f302fbb 100644 --- a/src/api/docker.js +++ b/src/api/docker.js @@ -80,6 +80,14 @@ command=mongod [program:node] command=node "/usr/src/app/bundle/main.js"`; +const nowJsonFileContents = ` +{ + "features": { + "cloud": "v1" + } +} +`; + // prepares all docker related files export const prepareDockerConfig = async () => { try { @@ -97,6 +105,7 @@ export const prepareDockerConfig = async () => { // create a supervisord.conf file to run mongodb inside the container await writeFile(`${meteorNowBuildPath}/supervisord.conf`, getSupervisordFileContents()); } + await writeFile(`${meteorNowBuildPath}/now.json`, nowJsonFileContents); logger.succeed(); } catch (e) { // eslint-disable-next-line