Skip to content

Slightly refactors preview script #52

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

Merged
merged 3 commits into from
May 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions netlify.bash
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/bin/bash
rm -rf redis-stack-website
# Prepares the Netlify preview
: ${REDIS_STACK_REPOSITORY:="github.com/redis-stack/redis-stack-website"}
if [[ -n $PRIVATE_ACCESS_TOKEN ]]; then
REDIS_STACK_REPOSITORY="$PRIVATE_ACCESS_TOKEN@$REDIS_STACK_REPOSITORY"
fi
repo_dir=$(pwd)
git clone --recurse-submodules https://[email protected]/redis-stack/redis-stack-website
cd redis-stack-website
pip3 install -r requirements.txt
npm install autoprefixer
REPO_DIR=$repo_dir REPOSITORY_URL=$REPOSITORY_URL PREVIEW_MODE=1 make netlify

rm -rf website
git clone --recurse-submodules https://$REDIS_STACK_REPOSITORY website
cd website
REPO_DIR=$repo_dir REPOSITORY_URL=$REPOSITORY_URL PREVIEW_MODE=1 make deps netlify