Skip to content

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

Description

@jwir3

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
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions