Muneeb Ahmad Farooqi

Joined

20 Experience
0 Lessons Completed
0 Questions Solved

Activity

Hi Chris,

Thank you so much for your reply. I did the same thing. I created a new file in sites-enabled same name as my project and paste the configurations as
server {

listen 80;
listen [::]:80 ipv6only=on;
        server_name mydomain.com;
passenger_enabled on;
rails_env    production;
root         /home/ubuntu/projects/site2/public;
error_page   500 502 503 504  /50x.html;
location = /50x.html {
    root   html;
}

}

But it is giving me an error that port 80 is already used. but when i changed port form 80 to 8080 this is not accessable from browser. i am using ubuntu 16.4.

Hi, I am getting the same issue, i followed your server setup tutorial and it works fine. but now i want to deploy another rails application on same server, i dont know how to configure my next application. My default file (/etc/nginx/sites-enabled/default) settings are given.

Default settings

server {

    listen 80;
    listen [::]:80 ipv6only=on;
            server_name mydomain.com;
    passenger_enabled on;
    rails_env    production;
    root         /home/ubuntu/projects/blog/public;
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }

}
Please guide me how to configure more apps. If you can show me the code example it'll be more helpful.
Thanks in advance.

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.