Skip to content

Instantly share code, notes, and snippets.

@mortenson
Last active March 27, 2019 04:04
Show Gist options
  • Save mortenson/54a9458f2dfe2c7ae993469c7aca2a16 to your computer and use it in GitHub Desktop.
Save mortenson/54a9458f2dfe2c7ae993469c7aca2a16 to your computer and use it in GitHub Desktop.
Replicate a bug with failed manual deploys and Netlify
#!/usr/bin/env bash
# Use: Create an empty directory and download this file as netlifybug.sh
# Then, run "netlify link", then ./netlifybug.sh.
# Use default deploy path (".") at prompts.
# You should see a failed deploy first, then a successful deploy after.
mkdir -p subdir
touch index.html subdir/index.html
RAND=$(openssl rand -base64 12)
echo "$RAND" >> index.html
echo "$RAND" >> subdir/index.html
netlify deploy
netlify deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment