crontab -e 입력 후 스케쥴러 등록하시고 service cron start 하시면 됩니다.
python 명령 부분은 절대경로로 써주시면 좋습니다. 예를 들어
0 * * * * /usr/local/bin/python /workspace/crawler/test1.py
와 같이 써주시면 실행이 됩니다.
which python 명령으로 사용하시는 python 명령의 절대경로를 확인하실 수 있습니다.
ide의 명령어 변수 중 ${selected.file.path}을 사용하면 가능할지도 몰라요!
도움말도 있더라고요.
https://help.goorm.io/ko/goormide/02.project/command#undefined-8
그리고 영어지만 사용사례도 레딧에 올라왔더라고요.
https://www.reddit.com/r/goormIDE/comments/g9051i/the_command_variable_in_the_command_feature_of/
혹시.. 문제가 구름 ide connection refused 이 문제 때문이신가요?
django 사용하신다면
settings.py에
ALLOWED_HOSTS=['.goorm.io']
넣어보시고
python manage.py runserver 0:8000
으로 실행해보시겠어요?
요약 : 1. allowed_hosts 에 goorm.io 추가시키고, runserver 할때 0:8000 번으로 켜기