File tree Expand file tree Collapse file tree 4 files changed +42
-1
lines changed Expand file tree Collapse file tree 4 files changed +42
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ FileUtils.chdir APP_ROOT do
2727 puts "\n == Preparing database =="
2828 system! "bin/rails db:prepare"
2929
30+ puts "\n == Generating React on Rails locales =="
31+ system! "bin/rails react_on_rails:locale"
32+
3033 puts "\n == Removing old logs and tempfiles =="
3134 system! "bin/rails log:clear tmp:clear"
3235
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+
4+ echo " 🚀 Setting up React on Rails workspace..."
5+
6+ # Note: This project requires Ruby 3.3.4.
7+ # Please ensure you have the correct Ruby version active before running this script.
8+
9+ # Copy environment files if they exist in the root
10+ if [ -f " $CONDUCTOR_ROOT_PATH /.env" ]; then
11+ cp " $CONDUCTOR_ROOT_PATH /.env" .env
12+ echo " ✅ Copied .env file from root"
13+ elif [ -f " $CONDUCTOR_ROOT_PATH /.env.example" ]; then
14+ cp " $CONDUCTOR_ROOT_PATH /.env.example" .env
15+ echo " ✅ Copied .env.example to .env"
16+ fi
17+
18+ if [ -f " $CONDUCTOR_ROOT_PATH /config/database.yml" ]; then
19+ cp " $CONDUCTOR_ROOT_PATH /config/database.yml" config/database.yml
20+ echo " ✅ Copied database.yml from root"
21+ elif [ -f " config/database.yml.example" ]; then
22+ cp config/database.yml.example config/database.yml
23+ echo " ✅ Copied database.yml.example to database.yml"
24+ fi
25+
26+ # Run the standard Rails setup script
27+ echo " 🔧 Running Rails setup script..."
28+ bin/setup --skip-server
29+
30+ echo " ✨ Setup complete! You can now run the development server."
Original file line number Diff line number Diff line change 1+ {
2+ "scripts" : {
3+ "setup" : " ./conductor-setup.sh" ,
4+ "run" : " bin/dev" ,
5+ "archive" : " "
6+ },
7+ "runScriptMode" : " nonconcurrent"
8+ }
Original file line number Diff line number Diff line change 33 "version" : " 1.1.0" ,
44 "description" : " Code from the React Webpack tutorial." ,
55 "engines" : {
6- "node" : " 22" ,
6+ "node" : " >= 22" ,
77 "yarn" : " 1.22"
88 },
99 "repository" : {
You can’t perform that action at this time.
0 commit comments