Muneeb Ahmad Farooqi

Joined

70 Experience
0 Lessons Completed
0 Questions Solved

Activity

That issue was resolved

That issue was resolved

That issue was resolved

That issue was resolved

That issue was resolved

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.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

© 2024 GoRails, LLC. All rights reserved.