Skip to content

Conversation

@frankli0324
Copy link
Contributor

@frankli0324 frankli0324 commented May 22, 2024

Description

adds two optional environment variables controlling the installation script:

export SWS_INSTALL_DIR="~/.local/bin"
export SWS_INSTALL_VERSION="2.31.0"
curl --proto '=https' --tlsv1.2 -sSfL https://get.static-web-server.net | sh

Motivation and Context

when installing with get.static-web-server.net, I would like to be able to pin the install version and specify an installation directory (so I can use it in packaging scripts)

@semanticdiff-com
Copy link

Review changes with SemanticDiff.

@joseluisq joseluisq added enhancement New feature or request v2 v2 release installer linux Linux platform specific unix Unix/BSDs platform specific labels May 22, 2024
Copy link
Collaborator

@joseluisq joseluisq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice idea. I wonder if you could also update the installer page with an example of how to use it. https://github.com/static-web-server/static-web-server/blob/master/docs/content/download-and-install.tmpl.md#binary-installer-linuxbsds

BTW can you please also update the PR with the example?

Copy link
Collaborator

@joseluisq joseluisq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@joseluisq joseluisq merged commit b291189 into static-web-server:master May 22, 2024
@joseluisq
Copy link
Collaborator

joseluisq commented May 22, 2024

BTW since it is a script (dynamic) and already merged. It should be already available to be used. The docs should be published soon.

@frankli0324 frankli0324 deleted the patch-1 branch May 22, 2024 08:18
@joseluisq joseluisq added this to the v2.31.2 milestone May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request installer linux Linux platform specific unix Unix/BSDs platform specific v2 v2 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants