DeployIt
Par ordre de priorité
- cli args
- env
- ~/.dploy/setting.json (user difined prefs)
- /etc/dploy/setting.json (global perfs)
- srv/etc/setting.json (default pref)
{
"paths": {
"upload": "/data/dploy/tmp/upload/",
"unzip": "/data/dploy/tmp/unzip/",
"data": "/data/dploy/store/"
},
"server": {
"port": 3000
},
"urls": {
"static": "http://api.dploy.plop.io/",
"api": "http://dploy.plop.io/"
}
}
Modifier le ~/.dploy/settings.json ou le fichier /etc/dploy/settings.json
{
// ...
"urls": {
"static": "http://<host>",
"api": "http://<host>"
}
}
start api
cd srv
./bin/start_dev.bash
start client
yeoman server
modifier les fichier app/scripts/app.js et ~/.dploy/settings.json ou le fichier /etc/dploy/settings.json
# build du projet (concat, mini, images opti)
yeoman build
# start server
./bin/start_prod.bash