Skip to content

Commit 0e6a40a

Browse files
authored
Merge pull request #211 from FAIRDataPipeline/hotfix/windows-space
Hotfix/windows space
2 parents 4451215 + b4491a1 commit 0e6a40a

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

CITATION.cff

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ license: "BSD-2-Clause"
3030
message: "If you use this software, please cite it using these metadata."
3131
repository-code: "https://github.com/FAIRDataPipeline/data-registry/"
3232
title: "The FAIR Data Registry"
33-
version: "v1.0.8"
33+
version: "v1.0.9"
3434
doi: "10.5281/zenodo.5562750"
3535
date-released: "2023-02-03"

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ authors = [
1515
]
1616
description = "Codebase for the FAIR data-registry"
1717
name = "data-registry"
18-
version = "v1.0.8"
18+
version = "v1.0.9"
1919

2020
[tool.poetry.dependencies]
2121
Django = "3.1.13"

scripts/start_fair_registry_windows.bat

+8-8
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pushd %FAIR_HOME%
2424
set FAIR_HOME=%CD%\
2525
popd
2626

27-
if not exist %FAIR_HOME:"=%venv\Scripts\ (
27+
if not exist "%FAIR_HOME%venv\Scripts\" (
2828
echo VENV Direcory does not exist, did you install using local_registry.bat?
2929
exit /b 1
3030
)
@@ -104,7 +104,7 @@ if not "%1" == "" (
104104

105105
set FULL_ADDRESS=%ADDRESS%:%PORT%
106106

107-
cd /d %FAIR_HOME%
107+
cd /d "%FAIR_HOME%"
108108

109109
:: Set Environment Variables needed for Django
110110
set DJANGO_SETTINGS_MODULE=%DRAMS%
@@ -114,14 +114,14 @@ set DJANGO_SETTINGS_MODULE=%DRAMS%
114114
@echo Spawning Server at %FULL_ADDRESS%
115115

116116
if %BACKGROUND%==0 (
117-
start %FAIR_HOME:"=%\venv\Scripts\python %FAIR_HOME:"=%manage.py runserver %FULL_ADDRESS% 1> %FAIR_HOME:"=%\output.log 2>&1
117+
start "Fair Registry" "%FAIR_HOME%\venv\Scripts\python" "%FAIR_HOME%manage.py" runserver %FULL_ADDRESS% 1> "%FAIR_HOME%\output.log" 2>&1
118118
) else (
119-
start /b %FAIR_HOME:"=%\venv\Scripts\python %FAIR_HOME:"=%manage.py runserver %FULL_ADDRESS% 1> %FAIR_HOME:"=%\output.log 2>&1
119+
start /b "Fair Registry" "%FAIR_HOME%\venv\Scripts\python" "%FAIR_HOME%manage.py" runserver %FULL_ADDRESS% 1> "%FAIR_HOME%\output.log" 2>&1
120120
)
121121

122122
echo Writing Session and Port Info
123-
echo %PORT% > %FAIR_HOME:"=%session_port.log
124-
echo %ADDRESS% > %FAIR_HOME:"=%session_address.log
123+
echo %PORT% > "%FAIR_HOME%session_port.log"
124+
echo %ADDRESS% > "%FAIR_HOME%session_address.log"
125125

126126
if %ADDRESS%==0.0.0.0 (
127127
echo Bound to All Addresses ^(0.0.0.0^) setting to loopback address 127.0.0.1
@@ -142,8 +142,8 @@ set /A count=0
142142

143143
echo Server Started Successfully
144144

145-
call %FAIR_HOME:"=%\venv\Scripts\python %FAIR_HOME:"=%manage.py get_token > %FAIR_HOME:"=%\token 2>&1
146-
echo Token available at %FAIR_HOME:"=%\token
145+
call "%FAIR_HOME%\venv\Scripts\python" "%FAIR_HOME%manage.py" get_token > "%FAIR_HOME%token" 2>&1
146+
echo Token available at "%FAIR_HOME%token"
147147

148148
cd /d %prevwd%
149149

scripts/stop_fair_registry_windows.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
echo Getting Process ID
44

5-
FOR /F %%T IN ('Wmic process where^(CommandLine like "%%manage.py runserver%%"^)get ProcessId^|more +1') DO (
5+
FOR /F %%T IN ('wmic process where "commandline like '%%manage.py%%runserver%%'" get processid^|more +1') DO (
66
SET /A ProcessId=%%T) &GOTO SkipLine
77
:SkipLine
88
echo Stopping ProcessId = %ProcessId%
99

10-
taskkill /F /PID %ProcessId% /t
10+
taskkill /F /PID %ProcessId% /t 2> nul

0 commit comments

Comments
 (0)