Localhost 3000 not working [closed] - ruby-on-rails

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
Hi I'm learning ruby on rails but all of a sudden localhost/3000 is not working, it was working fine moments ago. I'm using windows 8 and my ruby version is 2.2.4 and rails version is 4.2.6
Rails server is running but localhost/300 is not loading in browser. Help please.
rails server
browser

You're using /3000 instead of :3000. You need http://localhost:3000 which connects to localhost using port 3000.
It does actually indicate the correct URL in your console output.

You have to run the server on a port and it is 3000 so the address should be http://localhost:3000 instead of http://localhost/3000.
Ports are followed by : in the url

Related

I can't access to Nifi Ui [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 11 months ago.
Improve this question
I have installed docker on Ubuntu-21.04 and I'm trying to run apache/nifi on it. I am using this command: docker run --name nifi -dp 8443:8443 apache/nifi. From the logs all seems fine:
Generated Username [24a06eea-579f-443a-ad81-b9fe95d46bd3]
Generated Password [9D3NKqhLElChcXHw0jzfO/wkT8yOV+uV]
2022-03-24 15:39:27,726 INFO [main] org.apache.nifi.web.server.JettyServer NiFi has started. The UI is available at the following URLs:
2022-03-24 15:39:27,726 INFO [main] org.apache.nifi.web.server.JettyServer https://a8917820086b:8443/nifi
The entire logs are here
But if i go at localhost:8443 I see this:
on firefox
and on chrome.
I don't know why I can't access to the UI of Nifi.
I have done all of this exactly on windows 10 and it works. Someone can help me? Thanks in advance.
You need to go to https://localhost:8443 not http://localhost:8443. By default NiFi is now secured with TLS, but 8443 is not the standard HTTPS port, thus it does not automatically redirect you to HTTPS if you only enter localhost

Testing CORS while sending request from a local NextJS server to a local Rails api server [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have two servers both of them running on localhost. On port 3000 it's a NextJs development server and on port 4000 i am running a Rails Api only server. I have not added any extra libraries or packages. I have a api endpoint like http://localhost:4000/products. And i have a fetch request from a NextJs page component's getServerSideProps function. I want to see how CORS works between these two servers. In development mode they are on the same domain localhost. But in production they will be different. How can i test CORS while both of the servers running on localhost?
In your /etc/hosts you can change the domain from localhost:4000 to api.example.localhost and keep the next one running in the same environment

RabbitMQ client can't connect to remote RabbitMQ server [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I have a nodejs client that uses bramqp for connecting to RabbitMQ server. My client can connect to a Rabbit MQ server in localhost and works well. But it's unable to connect to a remote RabbitMQ server on other machine. I opened port 5672 in the remote server, so I think that the problem is in the configuration of rabbitMQ server. How can I solve this problem?
The problem seems the new rabbitmq access control policy
Please read this post:
Can't access RabbitMQ web management interface after fresh install
I think it can help you!

Connection refused Is the server running on host "127.0.0.1"? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I ran the Rails server and, when trying to view my page on my localhost, I see this error:
Could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432?
The weird thing is that a week ago this page was displaying and now it is not, so I don't understand what changed.
The 5432 port error is probably indicating that Rails is trying to connect to a PostgreSQL database that hasn't yet been created or isn't running.
Check to make sure your config\database.yml file is accurate and run the following command:
bundle exec rake db:create

Rails Production App Hangs When Try To Open In Browser [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Improve this question
I have a Rails app that is running on a production VPS Ubuntu server with Unicorn and Nginx server. I've developed app on local machine, where app is working flawless.
But when i tried to open live rails app on FireFox browser, It seems hangs; When i saw production.log , I found following:
Connecting to database specified by database.yml
Connecting to database specified by database.yml
This is the setting of my database.yml file.
production:
adapter: postgresql
encoding: unicode
database: svschool_production
pool: 5
host: localhost
username: xxxxxxxx
password: xxxxxxxx
What should i do now to work it well?

Resources