Skip to content

Commit

Permalink
only update next snoot port for new snooters
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Jan 4, 2019
1 parent 4fce311 commit 666884b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions commands/create-snoot.js
Expand Up @@ -161,8 +161,10 @@ module.exports = async function createSnoot () {
log("restarting nginx 🔂")
await shell.run("nginx -s reload")

log("updating next snoot port 🌸")
await snoots.setNextPort(webPort + 1)
if (!snootAlreadyExists) {
log("updating next snoot port 🌸")
await snoots.setNextPort(webPort + 1)
}
}

let beingRunDirectly = process.argv[1].match(/create-snoot($|\.js$)/)
Expand Down

0 comments on commit 666884b

Please sign in to comment.