Here is my problem:
I have got a Python build script that executes several commands to produce a .air package. This part of the job is done correctly but after that, I’d like to deploy this file to a server.
I’m using a fabric script in ordrer to do that. Here are the lines:
if os.system(os.environ["FAB"] + "\\fab.exe " + version + " deploy") != 0:
print("fab error")
sys.exit(-1)
When I run this script, as said in the title, the fab.exe execution does not finish. If I run it separately in a cmd.exe window, there is no problem, so that means my SSH configuration seems to be OK.
I tried to print the ouput and the errors in files but when I kill the fab task, nothing is printed =(
Has anybody an idea about this problem? Is it possible that the execution of the build script has other rights than my windows account?
Thank you in advance!
Just to note, you can import fabric itself directly and tell it to run it’s tasks, so really you don’t have to subprocess out. It’s just python after all, and can be used as a library: http://docs.fabfile.org/en/1.1.1/usage/library.html