Skip to content

Commit

Permalink
use a different hostname for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Aug 31, 2024
1 parent f9abfe8 commit b2aa537
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ servers:
- 174.138.51.62
labels:
traefik.http.routers.my_awesome_app.entrypoints: websecure
traefik.http.routers.my_awesome_app.rule: Host(`beta.locomotive.works`) || Host(`demo.locomotivecms.com`) || Host(`recaptcha.nocoffee.fr`)
traefik.http.routers.my_awesome_app.rule: Host(`beta2.locomotive.works`) || Host(`beta.locomotive.works`) || Host(`demo.locomotivecms.com`) || Host(`recaptcha.nocoffee.fr`)
traefik.http.routers.my_awesome_app.tls.certresolver: letsencrypt
options:
network: "private"
Expand Down
1 change: 1 addition & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,5 @@
config.hosts << 'localhost:3000' # required when running within a Docker container (Kamal)
config.hosts << '127.0.0.1:3000'
config.hosts << 'beta.locomotive.works'
config.hosts << 'beta2.locomotive.works'
end
2 changes: 1 addition & 1 deletion config/initializers/locomotive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# enable it if you want Locomotive to render the site of the Rails application embedding the engine
if Rails.env.production?
config.host = 'beta.locomotive.works'
config.host = 'beta2.locomotive.works'
end

# list of forbidden handles for a site because there are in conflicts with internal resources.
Expand Down

0 comments on commit b2aa537

Please sign in to comment.