我想在计划的heroku任务中调用heroku postgres备份/恢复命令,但是从bash提示符中无法使用heroku toolbelt,所以我无法调用heroku命令:
$ heroku run bash --app myapp
Running `bash` attached to terminal... up, run.4805
~ $ heroku --version
bash: heroku: command not found
Run Code Online (Sandbox Code Playgroud)
如何在我的预定bash脚本中获取heroku命令?我对Ruby或Ruby Gems一无所知.
我在Heroku上运行使用postgres的应用程序.
我的所有SQL语句都在我的日志中出现; 我想把它关掉.
它们看起来像这样:
Dec 03 05:41:36 ti-core app/postgres: [1566-2] #011FROM alias
Dec 03 05:41:36 ti-core app/postgres: [1566-3] #011WHERE alias.nid = E'10.5334/sta.at' AND alias.namespace = E'doi'
Dec 03 05:41:36 ti-core app/postgres: [1566-4] #011 LIMIT 1
Run Code Online (Sandbox Code Playgroud)
我无法弄清楚我在哪里设置了这个级别的heroku postgres调试以及在哪里将其降低了一个档次.谢谢!