I have a python script which I only need to run once (I don't want to have to commit it to the repo to send to the Cedar instance).
我有一个python脚本,我只需要运行一次(我不想将它提交到repo发送到Cedar实例)。
The Script aggregates data over my Django models and outputs a .csv file.
脚本通过我的Django模型聚合数据并输出.csv文件。
Normally in AWS, I would scp
the script to the server, manage.py shell < script.py
, and scp
the produced .csv back to my machine.
通常在AWS中,我会将脚本scp到服务器,manage.py shell