我正在使用settings.py (saved in git)和的組合localsettings.py (not saved in git)來配置我的應用程序并將敏感信息保留在 git 之外。我是Elastic Beanstalk第一次部署,不知道如何localsettings.py在正確的位置上傳或創建。如果我 scp 它顯示為 ec-user 并且我無法直接在部署目錄中創建具有正確所有權的文件。對我來說,最終的設置是擁有一個位于目錄上方的“主”文件,/var/app/current我可以在部署時將其復制到正確的位置。任何幫助,將不勝感激。
添加回答
舉報
0/150
提交
取消