我刚刚为我的django项目安装了django-robots-txt。现在,正如项目所述,我必须根据需要编辑robot.txt文件。因为我不能git推送这个文件到我的Heroku服务器上,所以我不确定如何在服务器上编辑这个文件。有人知道怎么做吗?
发布于 2013-02-04 08:11:30
在本地计算机上编辑该文件。
做一个
git add -u 若要更新项目资源,请执行以下操作。然后
git commit -m "changes that you made"和一个
git push heroku master(assuming you are working on the master branch)这应该会将您的最新更改(包括对robots.txt的更改)推送到heroku。
https://stackoverflow.com/questions/14678629
复制相似问题