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

                    Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

                    Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

                    How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page