Is it possible to skip the asset precompile step for a single git push on Heroku?

后端 未结 4 1819
慢半拍i
慢半拍i 2020-12-28 19:18

Every time I deploy my Rails 3.2 project to Heroku, rake assets:precompile is run:

$ git push heroku master  
...
----> Preparing app for Rai         


        
4条回答
  •  爱一瞬间的悲伤
    2020-12-28 20:13

    Sure! You'll need to create a manifest.yml in your_app/pubilc/assets directory.

    The file can be blank. But ideally, you precompile everything locally, so deploys to Heroku would be much faster.

    Make sure that you also committed the manifest.yml file when you're pushing to Heroku. Something like git add -f your_app/pubilc/assets/manifest.yml and a git push heroku master should suffice.

提交回复
热议问题