-
-
Save kumekay/6710825 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Крон в линуксе запускает программу в пустом окружении. Учитывая, что | |
сегодня каждое первое приложение идет с rvm или чем-то ещё, а крон обычно | |
запускается по ночам, отладка занимает кучу времени. | |
Проще всего отладить так: | |
env -i /path/to/script.sh | |
Это воссоздает то бедное окружение, в котором работает крон. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment