This commit is contained in:
Nicolas Bally 2017-10-17 12:06:55 +02:00
parent 92ce5cc3a0
commit 281d132671
2 changed files with 6 additions and 4 deletions

View File

@ -4,7 +4,7 @@ upstream negos_app_unicorn {
server {
listen 80;
server_name negos.pro negos-pro.fr;
server_name negos.pro negos-pro.fr commander.vouisstar.fr;
root /home/web/negos_app/current/public;
try_files $uri/index.html $uri @unicorn;

View File

@ -2,9 +2,11 @@ Rails.application.routes.draw do
get 'mail_assets/:token.png' => "admin/mail_trackings#update", :as => :image_tracking
get "vouisstar" => "public/home#vouisstar"
constraints subdomain: 'affiliation' do
get "/:mlm_token" => "public/home#affiliation"
get "/" => "public/home#affiliation"
constraints subdomain: 'commander' do
get "/" => "public/home#vouisstar"
end
get "affiliation/:mlm_token" => "public/home#affiliation"