Git-Auto-Deploy
Git-Auto-Deploy copied to clipboard
[CentoS 7] - Error while setting service at startup
Hi, When setting service on startup via cron or systemd (systemctl), I'm getting this error:
/usr/bin/python: Import by filename is not supported.; '/var/newgen/autodeploy/gitautodeploy' is a package and cannot be directly executed
My installed python version is 2.7.5.
Any info on this problem?
Thank you.
It's a python complaint. Use a script that fires at boot:
Not ideal, but:
#!/bin/bash
cd /usr/src/Git-Auto-Deploy
python -m gitautodeploy --daemon-mode --quiet --config /usr/src/Git-Auto-Deploy/config.json
Thanks @mjmunger gonna try that 👍