-
Notifications
You must be signed in to change notification settings - Fork 278
Expand file tree
/
Copy pathdeploy.bat
More file actions
47 lines (39 loc) · 1.16 KB
/
deploy.bat
File metadata and controls
47 lines (39 loc) · 1.16 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@echo off
set SERVER_IP=159.65.61.54
set ZIP_FILE=ctapipe_deploy.zip
REM Automatically change to the project root (parent directory of this script)
cd /d "%~dp0.."
echo Running from: %CD%
echo Packaging code for deployment...
rem Create a temporary deployment directory if it doesn't exist
if not exist "deploy" mkdir deploy
rem Copy source code
if exist "src" (
echo Copying src...
xcopy /E /I /Y src deploy\src
)
rem Copy documentation
if exist "docs" (
echo Copying docs...
xcopy /E /I /Y docs deploy\docs
)
rem Copy examples
if exist "examples" (
echo Copying examples...
xcopy /E /I /Y examples deploy\examples
)
rem Copy setup files
if exist "pyproject.toml" copy pyproject.toml deploy\
if exist "setup.cfg" copy setup.cfg deploy\
if exist "setup.py" copy setup.py deploy\
if exist "README.md" copy README.md deploy\
if exist "LICENSE" copy LICENSE deploy\
echo.
echo Deployment package created in the 'deploy' directory.
echo To move to Linux server, use scp or similar:
echo scp -r deploy/* user@linux-server:/path/to/ctapipe/
echo.
echo NOTE: Ensure you have installed dependencies on the Linux server:
echo pip install -e .[all]
echo.
pause