ruby on rails - syncing folder after deploy -
Every time I'm deploying my redemption repository with the Castiestano running my files. I can see that Cassitario simulates the public directory, but there is no {root} / file directory.
I have read some articles on the internet but it can not seem to work.
Then I want to keep my files after deploying in the {APPROOT / files} directory
Many thanks for reading this.
You have two solutions:
1: Your 2: Add a task to your castrina recipe to create a symlink after each deployment: files < / Code> Place the directory in the
public / shared which is maintained by the deployment.
Tasks: create_files_symlink ,: roles = & gt; : "Ln -nfs # {shared_path} / files # {release_path} / files" end "update: 'update_code', 'create_files_symlink',
Comments
Post a Comment