Skip to content
This repository has been archived by the owner on Nov 23, 2022. It is now read-only.

Commit

Permalink
Allow disabling domain with false value in config
Browse files Browse the repository at this point in the history
  • Loading branch information
yamalight committed Aug 2, 2017
1 parent 9b6dc10 commit 2a20f4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/docker/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = async ({image, username}) => {

// generate host
const defaultDomain = serverConfig.baseDomain ? `${name}${serverConfig.baseDomain}` : undefined;
const host = config.domain || defaultDomain;
const host = config.domain === undefined ? defaultDomain : config.domain;

// generate env vars
const Env = config.env ? Object.keys(config.env).map(key => `${key}=${config.env[key]}`) : [];
Expand Down
2 changes: 1 addition & 1 deletion test/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ module.exports = (server, token) =>
name.replace(`-${deployId}`, ''),
'Should have correct backend label'
);
t.equal(container.Labels['traefik.frontend.rule'], 'Host:localhost', 'Should have correct frontend label');
t.notOk(container.Labels['traefik.frontend.rule'], 'Should not have frontend label');
t.ok(container.NetworkSettings.Networks.exoframe, 'Should be in exoframe network');

// cleanup
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/html-project/exoframe.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "test-html-deploy",
"domain": "localhost",
"domain": false,
"restart": "no"
}

0 comments on commit 2a20f4d

Please sign in to comment.