Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access the Dashboard from localhost #72

Open
Silver2410 opened this issue Apr 21, 2021 · 0 comments
Open

access the Dashboard from localhost #72

Silver2410 opened this issue Apr 21, 2021 · 0 comments

Comments

@Silver2410
Copy link

I don't have much experience with linux, nginx nor ruby on rails, but I still managed to solve few issues here and there and to install everything on Ubuntu 20.10 (great guide by the way, a really well done job)

I'm experimenting things on a virtual machine on my laptop, and after managing to set up everything without any error I can't access to the dashboard/sign in screen from my browser.

here's my decidim.conf file

server {
    listen 80;
    listen [::]:80 ipv6only=on;

    server_name localhost;
    client_max_body_size 32M;

    passenger_enabled on;
    passenger_ruby /home/silver/.rbenv/shims/ruby;

    rails_env    production;
    root         /home/silver/decidim-app/public;
}

"silver" is of course the username on my machine (passenger_ruby points to /home/silver/.rbenv/shims/ruby, and not to the guide's decidim/.rbenv/ )

After setting up localhost as my server_name nginx doesn't show me the classic "welcome to nginx" message anymore (still available from 127.0.0.1 and 127.0.1.1) when I try to access it, but a "can't reach the website" error (ERR_CONNECTION_REFUSED), so I can tell that something happens.

addresses like http://localhost, http://localhost/system and http://localhost/system/admins/sign_in (not HTTPS) cannot be reached, but resources like http://localhost/422.html or http://localhost/robots.txt, available in the home/silver/decidim-app/public/ folder can be accessed.

Here's a screen of the content of my public folder, I don't know if is needed... again, I still don't have experience with ruby on rails, so there are more chances I'm missing something of very silly rather than not having the needed files.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant