ansistrano / deploy

Ansible role to deploy scripting applications like PHP, Python, Ruby, etc. in a capistrano style
https://ansistrano.com
MIT License
2.37k stars 343 forks source link

Example strategy for deploying rails using webpacker and assets:precompile #325

Closed rromanchuk closed 5 years ago

rromanchuk commented 5 years ago

Example play, with theoretical rails deployment https://gist.github.com/rromanchuk/af3cce7f078bd576847a318f3ec1e280

If you are using webpacker with bundle exec rake assets:precompile on deployment, it's critical to setup your shared directories in order to avoid very expensive operations that could lead to downtime and extremely slow deploys.

This is out of scope for this project, but i'm opening and closing for SEO visibility to save someone else some time. Maybe i'll create a wiki page when i have time for full end to end deployment example.