Skip to content

Commit

Permalink
Don't error when the public directory doesn't exist (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
benpickles authored Aug 19, 2024
1 parent 15e6ab2 commit 0da6faf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/rails/bin/static-build
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ bundle exec rails assets:precompile
bundle exec parklife build "$@"

# Copy all public resources to ./build.
cp -R public/* build
if [ -d public ]; then
cp -R public/* build
fi

# List all files in the build (useful for debugging).
find build -type f | sort
4 changes: 3 additions & 1 deletion lib/parklife/templates/static_build.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ bundle exec rails assets:precompile
bundle exec parklife build "$@"

# Copy all public resources to ./build.
cp -R public/* build
if [ -d public ]; then
cp -R public/* build
fi

# List all files in the build (useful for debugging).
find build -type f | sort

0 comments on commit 0da6faf

Please sign in to comment.