forked from episerver/musicfestival-vue-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cmd
27 lines (22 loc) · 944 Bytes
/
setup.cmd
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
26
27
@ECHO OFF
SETLOCAL
REM Clear node modules before installing
CALL npm ci
IF %errorlevel% NEQ 0 EXIT /B %errorlevel%
REM Restore nuget packages
CALL .\.nuget\nuget.exe restore MusicFestival.Vue.Template.sln
IF %errorlevel% NEQ 0 EXIT /B %errorlevel%
REM Set up database
SET MusicFestival=src\MusicFestival.Vue.Template
IF EXIST %MusicFestival%\App_Data (
ECHO Remove all files from the app data folder
DEL %MusicFestival%\App_Data\*.* /F /Q || Exit /B 1
) ELSE (
MKDIR %MusicFestival%\App_Data || Exit /B 1
)
REM Copy the database files to the site.
XCOPY /y/i build\database\DefaultSiteContent.episerverdata %MusicFestival%\App_Data\ || Exit /B 1
XCOPY /y/i/k build\database\musicfestival.mdf %MusicFestival%\App_Data\ || Exit /B 1
XCOPY /y/i/k build\database\GeoLiteCity.dat %MusicFestival%\App_Data\ || Exit /B 1
XCOPY /y/i build\automation\ProvisionDatabase_MVC.cs %MusicFestival%\App_Code\ || Exit /B 1
EXIT /B %ERRORLEVEL%