infra updates

This commit is contained in:
2020-03-05 11:36:49 -05:00
parent aec5364f2e
commit 840bac4d54
12 changed files with 47 additions and 49 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ class SupplierController < Suppliers::ApplicationController
if Rails.env.development?
redirect_to "http://localhost:4202/supplier/#{params[:other]}"
else
render html: File.read(Rails.root.join('public/supplier/index.html'))
redirect_to "https://supplier.mozo.bar/supplier/#{params[:other]}"
end
end
=begin
@@ -1,7 +1,7 @@
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
def passthru
return show_404 alert: 'Test'
send(params[:provider]) and return if available_action?(params[:provider])
show_404
# Or alternatively,
# raise ActionController::RoutingError.new('Not Found')
end