Skip to content

Commit

Permalink
Merge pull request #51 from ooemperor/dev
Browse files Browse the repository at this point in the history
Chaning the paths in scripts and services to use python virtual environments
  • Loading branch information
ooemperor authored Apr 27, 2024
2 parents 1390af5 + 43ed597 commit ca51569
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion codeGrader/scripts/cgAdminFrontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def main():
Starting a new instance of the EvaluationService
@return:
"""
os.chdir("/usr/local/lib/python3.11/dist-packages/codeGrader/frontend/admin")
os.chdir("opt/CodeGrader_venv/lib/python3.11/site-packages/codeGrader/frontend/admin")
admin_frontend()


Expand Down
2 changes: 1 addition & 1 deletion codeGrader/scripts/cgUserFrontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def main():
Starting a new instance of the EvaluationService
@return:
"""
os.chdir("/usr/local/lib/python3.11/dist-packages/codeGrader/frontend/user")
os.chdir("opt/CodeGrader_venv/lib/python3.11/site-packages/codeGrader/frontend/user")
user_frontend()


Expand Down
2 changes: 1 addition & 1 deletion services/cgAdminFrontend.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ After=network.target
[Service]
User=root
WorkingDirectory=/
ExecStart=nohup cgAdminFrontend > /var/log/cgAdminFrontend.log &
ExecStart=nohup /opt/CodeGrader_venv/bin/cgAdminFrontend > /var/log/cgAdminFrontend.log &
# optional items below
Restart=always
RestartSec=3
Expand Down
2 changes: 1 addition & 1 deletion services/cgApiBackend.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ After=network.target
[Service]
User=root
WorkingDirectory=/
ExecStart=nohup cgApiBackend > /var/log/cgApiBackend.log &
ExecStart=nohup /opt/CodeGrader_venv/bin/cgApiBackend > /var/log/cgApiBackend.log &
# optional items below
Restart=always
RestartSec=3
Expand Down
2 changes: 1 addition & 1 deletion services/cgEvaluationService.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ After=network.target
[Service]
User=root
WorkingDirectory=/
ExecStart=nohup cgEvaluationService > /var/log/cgEvaluationService.log &
ExecStart=nohup /opt/CodeGrader_venv/bin/cgEvaluationService > /var/log/cgEvaluationService.log &
# optional items below
Restart=always
RestartSec=3
Expand Down
2 changes: 1 addition & 1 deletion services/cgExecutionService.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ After=network.target
[Service]
User=root
WorkingDirectory=/
ExecStart=nohup cgExecutionService > /var/log/cgExecutionService.log &
ExecStart=nohup /opt/CodeGrader_venv/bin/cgExecutionService > /var/log/cgExecutionService.log &
# optional items below
Restart=always
RestartSec=3
Expand Down
2 changes: 1 addition & 1 deletion services/cgUserFrontend.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ After=network.target
[Service]
User=root
WorkingDirectory=/
ExecStart=nohup cgUserFrontend > /var/log/cgUserFrontend.log &
ExecStart=nohup /opt/CodeGrader_venv/bin/cgUserFrontend > /var/log/cgUserFrontend.log &
# optional items below
Restart=always
RestartSec=3
Expand Down

0 comments on commit ca51569

Please sign in to comment.