Two Rails projects on two different droplets with single domain2019 Community Moderator ElectionRails 4 API deployment example to Amazon EC2 using Capistrano 3, Nginx, Puma, GitHub, and RVM?Node : Set different domain name on different portNginx can't connect to localhostRoot path with Nginx, Puma and Rails 4Digital ocean droplet running rails application getting compromisedHow to deploy AngularJS static app Rails 5 api full separate on same droplet?Rails app with multiple domainsDeploying a Rails app using ActionCable with nginx + puma using SSLWhat server specification are enough for 10,000 concurrent users requests on my websitemultiple rails app (2 separate domains) on a single server - puma and nginx
How do you say “my friend is throwing a party, do you wanna come?” in german
Plagiarism of code by other PhD student
How to substitute values from a list into a function?
Can a gentile pronounce a blessing for a Jew? Are there songs I can sing that will bring peace?
How can I be pwned if I'm not registered on the compromised site?
A world without atoms?
Rationale to prefer local variables over instance variables?
What is the difference between a forward slip and a side slip?
How to roleplay my character's ethics according to the DM when I don't understand those ethics?
How do I deal with being envious of my own players?
Four buttons on a table
1970s scifi/horror novel where protagonist is used by a crablike creature to feed its larvae, goes mad, and is defeated by retraumatising him
Can I cast a spell through the Invoke Duplicity clone while inside a Forcecage?
Did Amazon pay $0 in taxes last year?
Who is NityA Devi Goddess
I encountered my boss during an on-site interview at another company. Should I bring it up when seeing him next time?
Are small insurances worth it
Levi-Civita symbol: 3D matrix
apt: What's the difference between "apt install php" and "apt install php-defaults"?
How to merge row in the first column in LaTeX
Create chunks from an array
Should we avoid writing fiction about historical events without extensive research?
How to kill a localhost:8080
Does "legal poaching" exist?
Two Rails projects on two different droplets with single domain
2019 Community Moderator ElectionRails 4 API deployment example to Amazon EC2 using Capistrano 3, Nginx, Puma, GitHub, and RVM?Node : Set different domain name on different portNginx can't connect to localhostRoot path with Nginx, Puma and Rails 4Digital ocean droplet running rails application getting compromisedHow to deploy AngularJS static app Rails 5 api full separate on same droplet?Rails app with multiple domainsDeploying a Rails app using ActionCable with nginx + puma using SSLWhat server specification are enough for 10,000 concurrent users requests on my websitemultiple rails app (2 separate domains) on a single server - puma and nginx
Is it possible to use one domain for two Rails projects on two different droplets?
I have two droplets (DigitaOcean) with two different Rails 5 projects (ubuntu 18, nginx, puma). One for the website and another for API (backend for mobile app).
I mean that I want to buy example.com domain. After that, I want to use example.com for website and api.example.com for API.
I think that I should make some work with nginx config? Should I use private IP? Which droplet should process traffic depending on url?
ruby-on-rails nginx ruby-on-rails-5 digital-ocean puma
add a comment |
Is it possible to use one domain for two Rails projects on two different droplets?
I have two droplets (DigitaOcean) with two different Rails 5 projects (ubuntu 18, nginx, puma). One for the website and another for API (backend for mobile app).
I mean that I want to buy example.com domain. After that, I want to use example.com for website and api.example.com for API.
I think that I should make some work with nginx config? Should I use private IP? Which droplet should process traffic depending on url?
ruby-on-rails nginx ruby-on-rails-5 digital-ocean puma
add a comment |
Is it possible to use one domain for two Rails projects on two different droplets?
I have two droplets (DigitaOcean) with two different Rails 5 projects (ubuntu 18, nginx, puma). One for the website and another for API (backend for mobile app).
I mean that I want to buy example.com domain. After that, I want to use example.com for website and api.example.com for API.
I think that I should make some work with nginx config? Should I use private IP? Which droplet should process traffic depending on url?
ruby-on-rails nginx ruby-on-rails-5 digital-ocean puma
Is it possible to use one domain for two Rails projects on two different droplets?
I have two droplets (DigitaOcean) with two different Rails 5 projects (ubuntu 18, nginx, puma). One for the website and another for API (backend for mobile app).
I mean that I want to buy example.com domain. After that, I want to use example.com for website and api.example.com for API.
I think that I should make some work with nginx config? Should I use private IP? Which droplet should process traffic depending on url?
ruby-on-rails nginx ruby-on-rails-5 digital-ocean puma
ruby-on-rails nginx ruby-on-rails-5 digital-ocean puma
asked 8 hours ago
ViT-Vetal-ViT-Vetal-
1,13911025
1,13911025
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Yes, you can easily add a sub domain, and point this subdomain to your droplet.
I am not too familiar with Digital Ocean, but it should be easy enough.
You just need to create a sub domain(process depends on domain provider), and simply point this to your droplet.
New contributor
Shivam Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55021283%2ftwo-rails-projects-on-two-different-droplets-with-single-domain%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Yes, you can easily add a sub domain, and point this subdomain to your droplet.
I am not too familiar with Digital Ocean, but it should be easy enough.
You just need to create a sub domain(process depends on domain provider), and simply point this to your droplet.
New contributor
Shivam Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
Yes, you can easily add a sub domain, and point this subdomain to your droplet.
I am not too familiar with Digital Ocean, but it should be easy enough.
You just need to create a sub domain(process depends on domain provider), and simply point this to your droplet.
New contributor
Shivam Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
Yes, you can easily add a sub domain, and point this subdomain to your droplet.
I am not too familiar with Digital Ocean, but it should be easy enough.
You just need to create a sub domain(process depends on domain provider), and simply point this to your droplet.
New contributor
Shivam Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Yes, you can easily add a sub domain, and point this subdomain to your droplet.
I am not too familiar with Digital Ocean, but it should be easy enough.
You just need to create a sub domain(process depends on domain provider), and simply point this to your droplet.
New contributor
Shivam Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Shivam Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 6 hours ago
Shivam JainShivam Jain
111
111
New contributor
Shivam Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Shivam Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Shivam Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55021283%2ftwo-rails-projects-on-two-different-droplets-with-single-domain%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown