Improved workspace scripts

This commit is contained in:
Sven Heidemann 2021-11-23 19:11:00 +01:00
parent 4edda07cee
commit f4c340796e
2 changed files with 9 additions and 5 deletions

View File

@ -12,6 +12,14 @@
"level-generator": "tools/level_generator/level-generator.json",
"ontime-calculator": "tools/ontime_calculator/ontime-calculator.json"
},
"Scripts": {}
"Scripts": {
"pre-start": "echo '!WARNING! You should start with the right environment!\nRun cpl start-ENV\nSee workspace for more details.'; sleep 2",
"pre-start-dev": "echo 'development:'; ",
"start-dev": "export GISMO_ENVIRONMENT=development; export GISMO_NAME=Gismo-dev; cpl start",
"pre-start-stage": "echo 'staging:'; ",
"start-stage": "export GISMO_ENVIRONMENT=staging; export GISMO_NAME=Gismo-test; cpl start",
"pre-start-prod": "echo 'production:'; ",
"start-prod": "export GISMO_ENVIRONMENT=production; export GISMO_NAME=Gismo-prod; cpl start"
}
}
}

View File

@ -1,4 +0,0 @@
#!/bin/bash
export GISMO_ENVIRONMENT=development
cpl start