How to exclude local files from being deployed to anynines
Sometimes you don't want to upload your whole application directory to the anynines servers.
You are able to exclude files and directories from the deployment by creating a file named .cfignore within the application's root directory.
Example .cfignore file contents:
tmp/
log/
my_unnecessary_file.txt
When executing your next cf push for deploying the application it will omit the files and directories listed in your .cfignore file.
For further information on this topic please have a look at the Cloud Foundry documentation.
2
Please sign in to leave a comment.
Comments
0 comments