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










0















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?










share|improve this question


























    0















    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?










    share|improve this question
























      0












      0








      0








      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?










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 8 hours ago









      ViT-Vetal-ViT-Vetal-

      1,13911025




      1,13911025






















          1 Answer
          1






          active

          oldest

          votes


















          1














          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.






          share|improve this answer








          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.



















            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
            );



            );













            draft saved

            draft discarded


















            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









            1














            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.






            share|improve this answer








            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.
























              1














              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.






              share|improve this answer








              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.






















                1












                1








                1







                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.






                share|improve this answer








                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.







                share|improve this answer








                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.









                share|improve this answer



                share|improve this answer






                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.





























                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    How to get text form Clipboard with JavaScript in Firefox 56?How to validate an email address in JavaScript?How do JavaScript closures work?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?How do I copy to the clipboard in JavaScript?How do I include a JavaScript file in another JavaScript file?Get the current URL with JavaScript?How to replace all occurrences of a string in JavaScriptHow to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?

                    Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

                    List of MPs elected to the English parliament in 1640 (April) Contents List of constituencies and members See also Notes References Navigation menueNational Archives – The Glynde Place ArchivesCobbett's Parliamentary history of England, from the Norman Conquest in 1066 to the year 1803'Aldermen in Parliament', The Aldermen of the City of London: Temp. Henry III – 1912onepage&q&f&#61, false 229