Skip to content

Commit 05d36a4

Browse files
committed
Updated deploy.bat for UserApps
1 parent 057e807 commit 05d36a4

File tree

11 files changed

+31
-19
lines changed

11 files changed

+31
-19
lines changed

Sample/UserApps/MdxEtl/MdxEtl.pyproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</ItemGroup>
2828
<ItemGroup>
2929
<None Include="deploy.bat" />
30-
<None Include="mdx_etl.swagger.yaml" />
30+
<None Include="mdxetl.swagger.yaml" />
3131
<Content Include="pywebapi.pth" />
3232
<Content Include="requirements.txt" />
3333
</ItemGroup>

Sample/UserApps/MdxEtl/db_mdx_db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def _full_url(relative_url:str) -> str:
2626
return urljoin(request.url, relative_url)
2727

2828
_url_mdx_reader = _full_url("../mdxreader/mdx_task.run_query")
29-
_url_svc_grp = _full_url("../services_grouping/rest_grouping.start")
29+
_url_svc_grp = _full_url("../servicesgrouping/rest_grouping.start")
3030

3131

3232
def _notify(result, error=None, notify_url:str=None, notify_args:dict=None) -> bool:

Sample/UserApps/MdxEtl/deploy.bat

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
@Echo off
22
CD /d "%~dp0"
3+
SETLOCAL EnableDelayedExpansion EnableExtensions
4+
35
IF "%~1"=="" (
4-
SET "DESTINATION=..\..\PyWebApi.IIS\user-script-root\samples\mdx_etl"
6+
For %%l in (.) Do SET FOLDER=%%~nxl
7+
SET "DESTINATION=..\..\PyWebApi.IIS\user-script-root\samples\!FOLDER!"
58
) ELSE (
69
SET "DESTINATION=%~1"
710
)
811

9-
RoboCopy . "%DESTINATION%" /s /purge /xf *.pyproj *.sql *.pck *.bak deploy.bat /xd __pycache__
12+
RoboCopy . "!DESTINATION!" /s /purge /xf *.pyproj *.sql *.pck *.bak deploy.bat /xd __pycache__
1013

11-
SETLOCAL EnableDelayedExpansion EnableExtensions
1214
FOR /f "delims=" %%i in ('dir pywintypes??.dll /s /b') DO (
1315
SET SOURCE=%%i
1416
IF "!SOURCE:~-4!"==".dll" (
1517
Copy "!SOURCE!" "!DESTINATION!" /y
1618
)
1719
)
20+
1821
ENDLOCAL

Sample/UserApps/MdxEtl/mdx_etl.swagger.yaml renamed to Sample/UserApps/MdxEtl/mdxetl.swagger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,4 @@ components:
166166

167167
servers:
168168
- description: (Please update the local-test base URL to your actual path)
169-
url: http://localhost/PyWebApi/pys/test_app/samples/mdx_etl
169+
url: http://localhost/PyWebApi/pys/test_app/samples/mdxetl
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
@Echo off
22
CD /d "%~dp0"
3+
SETLOCAL EnableDelayedExpansion EnableExtensions
4+
35
IF "%~1"=="" (
4-
SET "DESTINATION=..\..\PyWebApi.IIS\user-script-root\samples\mdxreader"
6+
For %%l in (.) Do SET FOLDER=%%~nxl
7+
SET "DESTINATION=..\..\PyWebApi.IIS\user-script-root\samples\!FOLDER!"
58
) ELSE (
69
SET "DESTINATION=%~1"
710
)
811

9-
RoboCopy . "%DESTINATION%" /s /purge /xf *.pyproj *.bak deploy.bat /xd __pycache__
12+
RoboCopy . "!DESTINATION!" /s /purge /xf *.pyproj *.bak deploy.bat /xd __pycache__
1013

11-
SETLOCAL EnableDelayedExpansion EnableExtensions
1214
FOR /f "delims=" %%i in ('dir pywintypes??.dll /s /b') DO (
1315
SET SOURCE=%%i
1416
IF "!SOURCE:~-4!"==".dll" (
1517
Copy "!SOURCE!" "!DESTINATION!" /y
1618
)
1719
)
20+
1821
ENDLOCAL

Sample/UserApps/PowerBIPusher/PowerBIPusher.pyproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</ItemGroup>
3030
<ItemGroup>
3131
<None Include="deploy.bat" />
32-
<None Include="powerbi_pusher.swagger.yaml" />
32+
<None Include="powerbipusher.swagger.yaml" />
3333
<Content Include="pywebapi.pth" />
3434
<Content Include="requirements.txt" />
3535
</ItemGroup>
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
@Echo off
22
CD /d "%~dp0"
3+
SETLOCAL EnableDelayedExpansion EnableExtensions
4+
35
IF "%~1"=="" (
4-
SET "DESTINATION=..\..\PyWebApi.IIS\user-script-root\samples\powerbi_pusher"
6+
For %%l in (.) Do SET FOLDER=%%~nxl
7+
SET "DESTINATION=..\..\PyWebApi.IIS\user-script-root\samples\!FOLDER!"
58
) ELSE (
69
SET "DESTINATION=%~1"
710
)
811

9-
RoboCopy . "%DESTINATION%" /s /purge /xf *.pyproj *.bak deploy.bat /xd __pycache__
12+
RoboCopy . "!DESTINATION!" /s /purge /xf *.pyproj *.bak deploy.bat /xd __pycache__
1013

11-
SETLOCAL EnableDelayedExpansion EnableExtensions
1214
FOR /f "delims=" %%i in ('dir pywintypes??.dll /s /b') DO (
1315
SET SOURCE=%%i
1416
IF "!SOURCE:~-4!"==".dll" (
1517
Copy "!SOURCE!" "!DESTINATION!" /y
1618
)
1719
)
20+
1821
ENDLOCAL

Sample/UserApps/PowerBIPusher/powerbi_pusher.swagger.yaml renamed to Sample/UserApps/PowerBIPusher/powerbipusher.swagger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,4 +276,4 @@ components:
276276

277277
servers:
278278
- description: (Please update the local-test base URL to your actual path)
279-
url: http://localhost/PyWebApi/pys/test_app/samples/powerbi_pusher
279+
url: http://localhost/PyWebApi/pys/test_app/samples/powerbipusher

Sample/UserApps/ServicesGrouping/ServicesGrouping.pyproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</ItemGroup>
2929
<ItemGroup>
3030
<None Include="deploy.bat" />
31-
<None Include="services_grouping.swagger.yaml" />
31+
<None Include="servicesgrouping.swagger.yaml" />
3232
<Content Include="pywebapi.pth" />
3333
<Content Include="requirements.txt" />
3434
</ItemGroup>
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
@Echo off
22
CD /d "%~dp0"
3+
SETLOCAL EnableDelayedExpansion EnableExtensions
4+
35
IF "%~1"=="" (
4-
SET "DESTINATION=..\..\PyWebApi.IIS\user-script-root\samples\services_grouping"
6+
For %%l in (.) Do SET FOLDER=%%~nxl
7+
SET "DESTINATION=..\..\PyWebApi.IIS\user-script-root\samples\!FOLDER!"
58
) ELSE (
69
SET "DESTINATION=%~1"
710
)
811

9-
RoboCopy . "%DESTINATION%" /s /purge /xf *.pyproj *.bak deploy.bat /xd __pycache__
12+
RoboCopy . "!DESTINATION!" /s /purge /xf *.pyproj *.bak deploy.bat /xd __pycache__
1013

11-
SETLOCAL EnableDelayedExpansion EnableExtensions
1214
FOR /f "delims=" %%i in ('dir pywintypes??.dll /s /b') DO (
1315
SET SOURCE=%%i
1416
IF "!SOURCE:~-4!"==".dll" (
1517
Copy "!SOURCE!" "!DESTINATION!" /y
1618
)
1719
)
20+
1821
ENDLOCAL

0 commit comments

Comments
 (0)