Skip to content

Commit

Permalink
Update entry_point.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pourmand1376 authored Sep 28, 2024
1 parent 6265269 commit 16321b5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bin/entry_point.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

CONFIG_FILE=_config.yml

/bin/bash -c "git restore Gemfile.lock && exec jekyll serve --watch --port=8080 --host=0.0.0.0 --livereload --verbose --trace --force_polling"&
start_jekyll() {
git restore Gemfile.lock 2>/dev/null || true
jekyll serve --watch --port=8080 --host=0.0.0.0 --livereload --verbose --trace --force_polling &
}

start_jekyll

while true; do

Expand All @@ -15,7 +20,7 @@ while true; do
jekyll_pid=$(pgrep -f jekyll)
kill -KILL $jekyll_pid

/bin/bash -c "git restore Gemfile.lock && exec jekyll serve --watch --port=8080 --host=0.0.0.0 --livereload --verbose --trace --force_polling"&
start_jekyll

fi

Expand Down

0 comments on commit 16321b5

Please sign in to comment.