Im getting stuck at this. I have a Rails App, that running on DO droplet and over 10 domain, Nginx as web server and Puma. The difference between websites is style for each domain and their db. So i cant figure out how to make it works. As i can see, I should create a separate socket for every site and configure redirection.
Locally it is working like: in .env file i define some site i.e. domain1.comand app choosing certain style and.
Sorry for mistakes, I maybe wrong, im not a developer, i just need to deploy it. At this time it is hosting on Heroku, separate app for separate site.
You can create different tasks for different domains. Each task would just set the appropriate variables.
Take a look at https://github.com/mina-deploy/mina/blob/master/docs/cookbook.md#multi-environment-deploy