Skip to content

Commit

Permalink
refactor: adjusted server command
Browse files Browse the repository at this point in the history
  • Loading branch information
medeirosinacio committed Mar 9, 2024
1 parent b419813 commit 4c9b32e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ vendor
!*/*/*/.gitkeep
!*/*/*/*/.gitkeep
!*/*/*/*/*/.gitkeep
!*/*/*/*/*/*/.gitkeep
!*/*/*/*/*/*/.gitkeep
/.gem-cache/
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ GEM

PLATFORMS
ruby
x86_64-linux-musl
x86_64-linux

DEPENDENCIES
jekyll (= 3.8)
Expand Down
7 changes: 4 additions & 3 deletions server.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash

docker run -ti --rm \
-v $PWD:/app \
-v ./:/app \
-w /app \
--dns 8.8.8.8 \
-p 80:4000 \
-p 4000:4000 \
-p 35729:35729 \
jekyll/builder \
/bin/bash -c "bundle install && bundle exec jekyll serve --host 0.0.0.0 --livereload"
jekyll/builder:3.8 \
/bin/bash -c "bundle install --path=./.gem-cache && bundle exec jekyll serve --force_polling --host 0.0.0.0 --livereload"

0 comments on commit 4c9b32e

Please sign in to comment.