Skip to content

Commit

Permalink
Add simple example routes to main app and web domain to debug staging…
Browse files Browse the repository at this point in the history
… issue
  • Loading branch information
luisramos0 committed Sep 26, 2018
1 parent 9211053 commit 7f2bcdd
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/test_main_app_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class TestMainAppController < ApplicationController
def show
render :show, layout: nil
end
end
2 changes: 2 additions & 0 deletions app/views/test_main_app/show.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
%h2
= "TEST MAIN APP"
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@
# Mount Web engine routes
mount Web::Engine, :at => '/'

get "/test_main_app", to: 'test_main_app#show'

# Mount Spree's routes
mount Spree::Core::Engine, :at => '/'
end
7 changes: 7 additions & 0 deletions engines/web/app/controllers/web/test_engine_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module Web
class TestEngineController < ApplicationController
def show
render :show, layout: nil
end
end
end
2 changes: 2 additions & 0 deletions engines/web/app/views/web/test_engine/show.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
%h2
= "TEST ENGINE"
2 changes: 2 additions & 0 deletions engines/web/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@
end

get "/angular-templates/:id", to: "angular_templates#show", constraints: { name: %r{[\/\w\.]+} }

get "/test_engine", to: 'test_engine#show'
end

0 comments on commit 7f2bcdd

Please sign in to comment.