File tree 5 files changed +8
-6
lines changed
5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,13 @@ def whitelabel_javascript_include_tag
28
28
end
29
29
30
30
def label_auth_url ( provider )
31
- host = Rails . env . development? ? "http://#{ Whitelabel [ :label_id ] } .onruby.test :3000" : Whitelabel [ :canonical_url ]
31
+ host = Rails . env . development? ? "http://#{ Whitelabel [ :label_id ] } .onruby.localhost :3000" : Whitelabel [ :canonical_url ]
32
32
33
33
"#{ host } /auth/#{ provider } ?origin=#{ CGI . escape ( params [ :origin ] ) if params [ :origin ] } "
34
34
end
35
35
36
36
def label_url ( label )
37
- host = Rails . env . development? ? "#{ label . label_id } .onruby.test " : label . canonical_url
37
+ host = Rails . env . development? ? "#{ label . label_id } .onruby.localhost " : label . canonical_url
38
38
root_url ( host :)
39
39
end
40
40
Original file line number Diff line number Diff line change 2
2
3
3
Rails . application . configure do
4
4
# Settings specified here will take precedence over those in config/application.rb.
5
- config . hosts << /.*onruby\. test .*/
5
+ config . hosts << /.*onruby\. localhost .*/
6
6
7
7
# In the development environment your application's code is reloaded any time
8
8
# it changes. This slows down response time but is perfect for development
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ namespace :data do
7
7
5 . times { FactoryBot . create ( :event , date : rand ( 100 ) . days . ago ) }
8
8
5 . times { FactoryBot . create ( :participant ) }
9
9
end
10
- puts 'now open your browser at http://hamburg.onruby.test :3000/'
10
+ puts 'now open your browser at http://hamburg.onruby.localhost :3000/'
11
11
end
12
12
13
13
task setup : [ 'environment' , 'db:migrate' ] do
Original file line number Diff line number Diff line change @@ -31,6 +31,6 @@ namespace :fork do
31
31
FileUtils . mkdir_p ( Rails . root . join ( "app/assets/javascripts/labels/#{ usergroup . label_id } " ) )
32
32
FileUtils . touch ( Rails . root . join ( "app/assets/javascripts/labels/#{ usergroup . label_id } /.gitkeep" ) )
33
33
34
- puts "now add '127.0.0.1 #{ name } .onruby.test ' to your /etc/hosts, run 'script/server' and run 'open #{ name } .onruby.test :3000'"
34
+ puts "now add '127.0.0.1 #{ name } .onruby.localhost ' to your /etc/hosts, run 'script/server' and run 'open #{ name } .onruby.localhost :3000'"
35
35
end
36
36
end
Original file line number Diff line number Diff line change @@ -74,10 +74,12 @@ script/in_docker bundle exec rspec spec/requests/labels_spec.rb
74
74
75
75
#### Add usergroup hostnames to ` /etc/hosts `
76
76
77
+ Note: This step is currently only necessary for Safari, all other browsers thread localhost as wildcard domain.
78
+
77
79
Add all supported subdomains to your ` /etc/hosts ` file:
78
80
79
81
```
80
- 127.0.0.1 www.onruby.test hamburg.onruby.test cologne.onruby.test berlin.onruby.test madridrb.onruby.test andalucia.onruby.test
82
+ 127.0.0.1 www.onruby.test hamburg.onruby.localhost cologne.onruby.localhost berlin.onruby.localhost madridrb.onruby.localhost andalucia.onruby.localhost
81
83
```
82
84
83
85
#### Visit the site
You can’t perform that action at this time.
0 commit comments