Answer the question
In order to leave comments, you need to log in
How to organize a site from several landing pages?
Hey!
Now I am developing a site (Ruby, Sinatra), which consists of 3 landing pages. They all belong to the same company, they just carry a different marketing load. All 3 landing pages should be on different domains and they should have a common admin area. Now I have made one main.rb, where after the slash (domain.org/lending1) the landing name is indicated.
Attention, the question is: what is the best way to do it? Leave everything in one file and masturbate with routing in nginx or split everything into 4 applications (landing pages + admin panel)? Or maybe there are other options? Thanks in advance!
Answer the question
In order to leave comments, you need to log in
In one project. Just imagine that you are creating a site of three pages, the rules will be the same. Only in routing it will be necessary to bind domains - in rail routes.rb the parameter is responsible for this constraints: {domain: 'domain.org'}
. I worked in sinatra for a very long time, perhaps there is something similar there. In the worst case, set up a redirect in nginx.conf from other domains to the pages of the main one (domain.org/lending1).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question