problem changing domain name to Ruby application - ruby

I changed the domain name for my ruby application but when I run it I get
The page you were looking for doesn't exist.
In the log file it says
Routing error no route matches [GET] "/"
In my routing file config/routes.rb I changed domaincontraint to domain new.
I must say that this configuration worked with my old domain name.
Am I missing some place to change the domain name? Please note I am very noobie to ruby

So, the good news is you are getting Routing error no route matches [GET] "/". this means your request reaches the rails application. Because in most cases it doesn't even come pass your server such as Nginx. In such cases its nothing to do with rails.
However, since you get the above routing error, that means your request hits the rails app.
Few things to check here:
1) make sure you have a root url defined in your config/routes file.
2) Make sure you url you are trying to access has a matching route.
For an example, say if you do http://<your domain>/products
Then in the routes, you should have products GET /products(.:format) products#index
You can check this by running rake routes from root of your rails app.
Also, it will be helpful for you to update the question with your config/routes file and also the url you are trying to access.

Related

Laravel route generation problem with APP_URL override

I have in .env file defined APP_URL. On apache web server host is configured to respond only for domain exampledomain.com
In routes is for example route defined as
Route::get('/orders/main-table', [\App\Http\Controllers\OrdersController::class, 'main_table'])->name('orders.offers_and_requests');
When following code is executed sometimes instead of expected url starting with https://exampledomain.com/...... I get https://ipaddress-of-server/.... and there is no rule when I get this. I personaly can't replicate to get this result but sometimes like some hacker override this... I would't notice if I did't analyzed activity log as I for debug purposes log all activity in app... All these routes from which can be executed this url generation are protected, so hacker can't just use post to generate these links.
route('orders.offers_and_requests');

Unable to locate the model you have specified - All i did was change servers

I have a codeigniter website, using the latest version of the frame work. I was hosting my website on Azure, and it was working fine - never any issues.
I've just moved all the files to a different server, a linux one - standard normal web hosting type server with cpanel.
My site loads up, however a lot of pages I use that require models, are giving off errors, as if the files do not exist
Unable to locate the model you have specified: UsersModel
Just note : I have read so many articles today, that you need to have uppercase / lowercase and all that stuff, but that's how i already have it setup, it just does not work since changing servers. and it worked perfectly fine yesterday on the Azure server.
Also, when going to the actual file in my address bar, it takes me to the 404 error. not sure if this has anything to do with it?
Did you change your base url in config file ?
All model , controllers, helper ,library name must me capital letter.
If you change server remove index.php from config file where you will get config['index']= ""; and save this.
Still you get error then save base url like domain/project_name/index.php

The URL "http://localhost/magento/" is not accessible. Unable to read response, or response is empty Magento Installtion Error

The URL "http://localhost/magento/" is not accessible.
Unable to read response, or response is empty
When install new magento in localhost.
As Ankit Parmar said, you can check
Skip Base URL Validation Before
...but you might encounter problems later on. This message appears probably because your domain is not public or not reachable. If you skip Base Url Validation, you will be able to finish the installation but you might get the strange problem of being able to log in but not to access the admin section (get redirected to the login page without any error message even if you see you're logged in by looking at the URL).
Rather than installing Magento under localhost, you should add a fake domain name in your host file and set up a vhost accordingly. you may then re-install Magento by accessing the fake domain name in your browser. You may setup the domain name in the core_config_data table if not done.
More over here: https://magento.stackexchange.com/questions/39752/how-do-i-fix-my-base-urls-so-i-can-access-my-magento-site

AppRelativeCurrentExecutionFilePath is always set to ~/ for all ASP.NET Web API paths

Currently, we are adding asp-net web api support to an asp.net application. However when using any path to request an action on the controller, AppRelativeCurrentExecutionFilePath is always set to "~/" and results in 400 error. Used the route debugger available here confirmed that AppRelativeCurrentExecutionFilePath is always incorrect no matter what the url is.
For e.g. all of below url accesses, has AppRelativeCurrentExecutionFilePath as "~/"
http://localhost:1521/Testclient/apitest/values/get
http://localhost:1521/Testclient/apitest/values/get/1
Route debugger also shows failed/no match for above urls even though route table has required entries.
Have disabled all Application_BeginRequest/VPP/module/http handlers and anything that can cause routing to be impacted but still getting into same issue. Any other possible ways this can be debugged?
Update1: Checked the application.Request.AppRelativeCurrentExecutionFilePath by handling Application_BeginRequest( ) in global.asax, even there it appears to be wrong.
Seems to have found the issue, site had a "." in the name and for some reason asp.net does not like it. Root path that caused the issue was
http://localhost:1521/Test.client/apitest/values/get
http://localhost:1521/Test.client/apitest/values/get/1
Note the "Test.Client", changed it to "TestClient" and all worked as expected. When i copied the link from the test machine, had changed it and overlooked it. This should save somebody few hours if they hit this problem. Still not sure if this is a bug!?

Routing Error No route matches [GET] "/salesforce/MerchandiseCs"

i am trying to make a connection with salesforce
I use abanta when i try to open the web page
this what i have
Routing Error
No route matches [GET] "/salesforce/MerchandiseCs"
Try running rake routes for more information on available routes.
I don't understand what this
any help please
Open the terminal and write: "rake routes".
You will see the available routes. The error is because "/salesforce/MerchandiseCs" is not in the list.

Resources