Skip to content

Commit

Permalink
feat: new NODEPACK_NO_MAINTENANCE env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Jul 6, 2019
1 parent 12bf219 commit b1ba4ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/guide/maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ In case at least one app migration is applied during the maintenance, the code s

Maintenances are automatically run when:

- the project is created
- a plugin is added, upgraded or removed
- a [service](./service.md) command is executed
- The project is created.
- A plugin is added, upgraded or removed.
- A [service](./service.md) command is executed (you can skip this by setting the `NODEPACK_NO_MAINTENANCE` env variable to `true`).
2 changes: 2 additions & 0 deletions docs/guide/service.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ You can also run them with `nodepack service <command>`:
nodepack service build
```

By default, a [maintenance](./maintenance.md) will be executed before the command. You can skip this by setting the `NODEPACK_NO_MAINTENANCE` env variable to `true`.

## Development build

To run the project in development mode use `nodepack` without argument:
Expand Down
2 changes: 1 addition & 1 deletion packages/@nodepack/service/src/bin/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const args = require('minimist')(rawArgv)
const command = args._[0]

async function run () {
if (command !== 'help') {
if (command !== 'help' && process.env.NODEPACK_NO_MAINTENANCE !== 'true') {
await runMaintenance({
cwd,
cliOptions: args,
Expand Down

0 comments on commit b1ba4ff

Please sign in to comment.