Skip to content

Commit

Permalink
fix: --port option not being used (fixes #607) (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
zamotany authored Jul 22, 2019
1 parent 44177db commit 7bff5a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/haul-cli/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export default function startCommand(runtime: Runtime) {
platform: '',
root: directory,
dev: argv.dev,
port: argv.port,
bundleMode: 'multi-bundle',
bundleTarget: 'server',
assetsDest: tempDir,
Expand Down
2 changes: 1 addition & 1 deletion packages/haul-core/src/preset/makeConfigFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function makeConfigFactory(getDefaultConfig: GetDefaultConfig) {
): NormalizedProjectConfigBuilder {
return (runtime: Runtime, env: EnvOptions) => {
const normalizedServerConfig = {
port: get(projectConfig, 'server.port', DEFAULT_PORT),
port: env.port || get(projectConfig, 'server.port', DEFAULT_PORT),
host: get(projectConfig, 'server.host', 'localhost'),
} as NormalizedServerConfig;

Expand Down

0 comments on commit 7bff5a8

Please sign in to comment.