Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chaning the paths in scripts and services to use python virtual environments #51

Merged
merged 2 commits into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading