Skip to content

Instantly share code, notes, and snippets.

@MaximeCulea
Created January 9, 2025 11:04
Show Gist options
  • Save MaximeCulea/30394233cc5c735dabb1f18cc439b342 to your computer and use it in GitHub Desktop.
Save MaximeCulea/30394233cc5c735dabb1f18cc439b342 to your computer and use it in GitHub Desktop.
Init server CI/CD folders and first deploy
#!/bin/bash
# init folders
mkdir deploy-cache
mkdir contents
# init atomic deployment folders
mkdir releases
mkdir releases/release-0
mkdir releases/release-0/web
# init the symlinks for the atomic release to be fully working
ln -s releases/release-0/ current
ln -s currnet/web webroot
# move files for first release
mv index.html webroot/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment