Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shipout should have option to ignore symlinks when deleting old versions #12

Open
jwir3 opened this issue Aug 26, 2021 · 0 comments
Open

Comments

@jwir3
Copy link
Contributor

jwir3 commented Aug 26, 2021

Sometimes, we want to have special symlinks to versions. For example, if we're deploying a documentation website for an API, we might want to have symlinks to specific versions of said API. If we remove the deployed directory to which these symlink(s) point, they no longer work. We should have some mechanism in shipout to determine whether to keep symlinks, (other than 'current', of course), and, if possible, to create new symlinks via some simple set of variables.

An example configuration:

"shipout": {
  "production": {
    "host": "somewhere.example.com",
    "port": 22,
    "username": "myuser"<
    "baseDirectory": "/var/www/something.cool.com",
    "keepSymlinks": true, // keep existing symlinks (if created manually)
    "createSymlink": "[package.version]" // tell shipout to create a duplicate symlink to the current deployment with the link named whatever the package version is
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant