Skip to content
Snippets Groups Projects
Commit f3abda5c authored by Max Melchert's avatar Max Melchert
Browse files

fix: allow console input/output at runtime

parent 7b2720ec
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,12 @@ upload: # upload project files from client to server
$(RSYNC) $(LOCAL_PROJECT_DIR)/ $(LOGIN):$(REMOTE_PROJECT_DIR)
run: # execute main script on server
$(SSH) 'cd $(REMOTE_PROJECT_DIR) && $(CONDA) run -n $(CONDA_ENV) python $(MAIN_SCRIPT)'
$(SSH) '\
cd $(REMOTE_PROJECT_DIR);\
$(CONDA) activate $(CONDA_ENV);\
python $(MAIN_SCRIPT);\
$(CONDA) deactivate;\
'
kill: # terminate the running script on the server
$(SSH) 'pkill -f $(MAIN_SCRIPT)'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment