我有一個rake任務,我曾經用這樣的引數來運行:
我有一個rake任務。
heroku rake query:/span>process -a myherokuapp
現在,rake任務接受了引數。如果我在本地運行它,我可以像這樣呼叫它們:
rake query:process -- -d true -c false
當我試圖在Heroku上運行這個程序時,它不喜歡引數和應用程式的組合。
# These don't work。
heroku rake query:process -- -d true -c false -a myherokuapp
heroku -a myherokuapp rake query:process -- -d true -c false
是否有可能在Heroku上運行這個帶引數的rake任務?
uj5u.com熱心網友回復:這樣做應該可以:
heroku -a myherokuapp run rake:process -- -d true -c false
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/307594.html
標籤:
