Skip to content

Commit bd4210b

Browse files
committed
Revert "Add blank lines before URLs and colorize them for better visibility"
This reverts commit 75c3361.
1 parent 75c3361 commit bd4210b

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

lib/generators/react_on_rails/generator_messages.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def helpful_message_after_installation(component_name: "HelloWorld")
6262
./bin/dev help # See all available options
6363
#{process_manager_section}
6464
65-
3. Visit: #{Rainbow("http://localhost:3000/hello_world").cyan.underline}
65+
3. Visit: http://localhost:3000/hello_world
6666
#{shakapacker_status}
6767
✨ KEY FEATURES:
6868
─────────────────────────────────────────────────────────────────────────
@@ -75,8 +75,8 @@ def helpful_message_after_installation(component_name: "HelloWorld")
7575
7676
📚 LEARN MORE:
7777
─────────────────────────────────────────────────────────────────────────
78-
• Documentation: #{Rainbow("https://www.shakacode.com/react-on-rails/docs/").cyan.underline}
79-
• Webpack customization: #{Rainbow("https://github.com/shakacode/shakapacker#webpack-configuration").cyan.underline}
78+
• Documentation: https://www.shakacode.com/react-on-rails/docs/
79+
• Webpack customization: https://github.com/shakacode/shakapacker#webpack-configuration
8080
8181
💡 TIP: Run 'bin/dev help' for development server options and troubleshooting#{testing_section}
8282
MSG

lib/react_on_rails/dev/server_manager.rb

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
require "English"
44
require "open3"
5-
require "rainbow"
65

76
module ReactOnRails
87
module Dev
@@ -169,7 +168,7 @@ def help_mode_details
169168
• Source maps for debugging
170169
• May have Flash of Unstyled Content (FOUC)
171170
• Fast recompilation
172-
• Access at: http://localhost:3000/hello_world
171+
• Access at: http://localhost:3000
173172
174173
Static development mode - Procfile.dev-static-assets:
175174
• No HMR (static assets with auto-recompilation)
@@ -178,7 +177,7 @@ def help_mode_details
178177
• CSS extracted to separate files (no FOUC)
179178
• Development environment (faster builds than production)
180179
• Source maps for debugging
181-
• Access at: http://localhost:3000/hello_world
180+
• Access at: http://localhost:3000
182181
183182
Production-assets mode - Procfile.dev-prod-assets:
184183
• React on Rails pack generation before Procfile start
@@ -187,7 +186,7 @@ def help_mode_details
187186
• Extracted CSS files (no FOUC)
188187
• No HMR (static assets)
189188
• Slower recompilation
190-
• Access at: http://localhost:3001/hello_world
189+
• Access at: http://localhost:3001
191190
MODES
192191
end
193192

@@ -250,8 +249,7 @@ def print_server_info(title, features, port = 3000)
250249
puts title
251250
features.each { |feature| puts " - #{feature}" }
252251
puts ""
253-
puts ""
254-
puts "💡 Access at: #{Rainbow("http://localhost:#{port}/hello_world").cyan.underline}"
252+
puts "💡 Access at: http://localhost:#{port}"
255253
puts ""
256254
end
257255

@@ -264,8 +262,7 @@ def print_procfile_info(procfile)
264262
puts box_empty_line(box_width)
265263
puts format_box_line("📋 Using Procfile: #{procfile}", box_width)
266264
puts format_box_line("🔧 Customize this file for your app's needs", box_width)
267-
puts box_empty_line(box_width)
268-
puts format_box_line("💡 Access at: #{Rainbow("http://localhost:#{port}/hello_world").cyan.underline}", box_width)
265+
puts format_box_line("💡 Access at: http://localhost:#{port}", box_width)
269266
puts box_empty_line(box_width)
270267
puts box_bottom(box_width)
271268
puts ""

0 commit comments

Comments
 (0)