Can not connect domain with Laravel Forge - laravel

I created a domain with GoDaddy, and connected it with Digital Ocean.
I think the domain connected exactly to Digital Ocean.
In Laravel Forge, I made an app with that domain, and deployed my GitHub project.
The problem is, if I visit my website, it is showing just the "Welcome to nginx!" page. How do I make it display the code I wrote?

If you deployed your application in default directory, then setting up the domain DNS records should point to you server ip address and your website should be accessible from both server ip address and the domain.
But if you deployed your application in a different directory rather than the "default" you need to change your DNS records for pointing correctly to application directory.
You may want to take a look at Laracasts Deployment tuts for Laravel Forge
a basic tutorial by Jeffery Way: https://laracasts.com/series/build-and-configure-a-staging-server/episodes/1
a newer version for working with Laravel Forge by Marcel Pociot: https://laracasts.com/series/learn-laravel-forge/episodes/4

Related

How do I point a GoDaddy subdomain to Heroku app

I have a domain name with GoDaddy: example.com.
I want example.com to point to my front-end app on Netlify (currently doing so fine with the nameservers pointing to Netlify).
I have created a subdomain on GoDaddy, api.example.com. I want to point this to my back-end app on Heroku (currently working with Heroku’s free (and rather whacky) subdomain name.
I am struggling getting my subdomain on GoDaddy to point to my app on Heorku. The DNS Target given by Heroku is to be added into the DNS. But in GoDaddy, the DNS is unable to be managed because my nameservers are already pointing towards Netlify - and it is my assumption, I cannot point a subdomain to Heroku via Netlify (unless I’m mistaken). I have checked other answers on here, but none seem to face this problem of nameservers already pointing elsehwere.
I’m pretty new to this back-end deployment, so any help would be gratefully appreciated. Thank you in advance.

I am unable to host my heroku app on my custom owned domain managed by Infomaniak (www.infomaniak.com)

Currently I am using Herokuapp to host my web application which is basically a personal website. With the default heroku given domain, its working properly. But whenever I am addiding the custom domain to my app (also adding CNAME for DNS target in my DNS registrar (which is Infomaniak.com), it does not work. I have tried everything (also waiting for more than a day to check if the app shows up in my custom domain) but was unable to do it until now. I have tried support from Infomaniak as well but did not work. Did anyone else face this issue and can anyone help me in this regard?

Laravel subdomain in shared hosting

Already I have hosted my laravel project http://1d1s.co and working fine. Now I wanted to create dev environment as a subdomain like http://dev.1d1s.co. Kindly help me to do.
First of all, check if your hosting and DNS provider allow subdomains.
Then, you can folow
this example
if you're using Apache2
If you're using nginx, try following this guide

Not able to redirect domain in Heroku (DNS)

I'm having hard times trying to redirect a custom domain on Heroku, have you guys had the same problem?
Configured custom domain on Heroku (already tried different variation):
The server asks for Server Name, so I add the only thing Heroku returns as the DNS:
Below there are two domains, the first says "servfail" (the current app domain), the second "nxdomain", which I've just bought it's fine.
Any advices? Should I deploy on another server? Thanks for the help!
You need to update the DNS servers of your domain fariba.cl to fariba.cl.herokudns.com at the domain registrar's end (from where you purchased the domain)
After that it will work fine.
For those facing DNS redirecting problems in Heroku, I suggest this Add-on that you can add to your app in Heroku (for free): PointDNS
With it you can get many types of adresses, including IP and/or n1.server n2.server and so on, in which you can add the address to your domain settings.

Heroku custom domain

Would like to learn how website works.
Purchased a domain name from bigrock domain registrar.
Am used to deploy applications to Heroku for my official websites.
But this is my personal site deployed to Heroku.
But how to connect my domain name to heroku ?
Heroku documentation is not clear to me.
I tried domain forwarding after playing with google search, but my site http://www.prithvibhargav.com/ is still giving me blank page.
Where as the heroku default website address still works
http://afternoon-cove-8287.herokuapp.com/
How to make my domain name to connect to heroku and work ?
There are so many terminoliges people use which is confusing
CName , A address, 301 redirect, domain forwarding
Which one to choose ?
You need to set your DNS to point to your heroku address. You should be able to go into the DNS settings in bigrock (where you registered the domain) and create CName record that will forward from your domain (http://www.prithvibhargav.com) to the heroku address (http://afternoon-cove-8287.herokuapp.com/)

Resources