Skip to content

Commit

Permalink
Add now.json to enforce cloud v1
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrup committed Aug 23, 2018
1 parent b3c1338 commit 0805a19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion 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",
Expand Down
9 changes: 9 additions & 0 deletions src/api/docker.js
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit 0805a19

Please sign in to comment.