update cable for cloud

This commit is contained in:
Aung Myo
2018-01-16 17:19:14 +06:30
parent 37d01f6903
commit d5b42b0ff0
2 changed files with 7 additions and 3 deletions

View File

@@ -7,7 +7,10 @@ scope "(:locale)", locale: /en|mm/ do
mount Sidekiq::Web => '/kiq'
# Action Cable Creation
mount ActionCable.server => "/cable"
if ENV["SERVER_MODE"] != "cloud"
mount ActionCable.server => "/cable"
end
#--------- SmartSales Activation ------------#
get 'activate' => 'install#index'