auto create nginx tmp folder

This commit is contained in:
Daniel Herrero 2018-02-07 09:53:45 +01:00
parent 7eee1cad50
commit 810db634d3
1 changed files with 4 additions and 0 deletions

View File

@ -191,6 +191,10 @@ gulp.task('nginx-stop', ['nginx-conf'], async () => {
gulp.task('nginx-conf', async () => {
const mustache = require('mustache');
if (!fs.existsSync(nginxTemp)) {
fs.mkdirSync(nginxTemp);
}
let params = {
services: await getServices(),
defaultService: defaultService,