Skip to content
Snippets Groups Projects
Verified Commit a70154c0 authored by Loïc Dachary's avatar Loïc Dachary Committed by Loïc Dachary
Browse files

add --stop to not run the server

parent 8fa2c968
Branches
No related tags found
1 merge request!3ci: download files and upload them in the database
......@@ -20,6 +20,11 @@ const optionsDefinitions = [
name: "verbose",
type: Boolean,
},
{
help: "do not run the server",
name: "stop",
type: Boolean,
},
]
const options = commandLineArgs(optionsDefinitions)
......@@ -181,6 +186,9 @@ async function main() {
await extract_vues_separees_csv()
}
await reset_database()
if (options.stop)
process.exit(0);
else
await startExpress()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment