22
33require "English"
44require "open3"
5- require "rainbow"
65
76module 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