react_on_rails initial generate

This commit is contained in:
Dylan Knutson
2023-04-04 21:47:52 +09:00
parent 96aff2e233
commit 67d1ce9f38
27 changed files with 898 additions and 80 deletions

9
Procfile.dev-static Normal file
View File

@@ -0,0 +1,9 @@
# You can run these commands in separate shells
web: rails s -p 3000
# Next line runs a watch process with webpack to compile the changed files.
# When making frequent changes to client side assets, you will prefer building webpack assets
# upon saving rather than when you refresh your browser page.
# Note, if using React on Rails localization you will need to run
# `bundle exec rake react_on_rails:locale` before you run bin/webpacker
webpack: sh -c 'rm -rf public/packs/* || true && bin/webpacker -w'