forked from gonzalezemmanuel/playground
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_demo.bat
More file actions
executable file
·26 lines (17 loc) · 813 Bytes
/
install_demo.bat
File metadata and controls
executable file
·26 lines (17 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
echo OFF
set ENV=prod
if "%1" NEQ "" (
set ENV=%1
)
git clone https://github.com/gregorybesson/playground-demo.git "data\playground-demo"
xcopy "data\playground-demo\media\*" "public\media\." /s /i
php vendor/doctrine/doctrine-module/bin/doctrine-module.php orm:schema-tool:drop --force || goto :error
php data/playground-demo/php/clean_sql.php "data/playground-demo/sql/demo.sql"
php vendor/doctrine/doctrine-module/bin/doctrine-module.php dba:import "data\playground-demo\sql\demo.sql.tmp" || goto :error
php vendor/doctrine/doctrine-module/bin/doctrine-module.php orm:schema-tool:update --force || goto :error
php public/index.php assetic setup || goto :error
php public/index.php assetic build || goto :error
rmdir "data\playground-demo" /s /q
:error
echo Failed with error #%ERRORLEVEL%.
pause