I am new user for website developer(rails3.2) and I don't know how to hosting over website to live.
I have used heroku but over website is not searchable by google and heroku added there domain i.e. http://example.herokuapp.com but I want website with http://www.example.com.
Please suggest me what process I have to follow. Please explain step by step.
Need paid server
Heroku is a PaaS (Platform as a Service). There is no easier way to deploy application on the Cloud.
There are several domain configurations available to your app. Most simple is to add custom domains on Heroku heroku domains:add www.example.com and the next step, you must configure your application’s DNS to point to Heroku.
Becareful, DNS changes can take several minutes to several days to take effect.
You need to purchase a domain from any of the Domain provider(Go Daddy,Zerigo DNS).
And you need to point out your Heroku app configurations at Domain C-panel.
Here is an article at Heroku. have you checked it?
https://devcenter.heroku.com/articles/custom-domains
Also here are some few URL's that gives you some basic Idea.
https://devcenter.heroku.com/articles/zerigo_dns
How to configure heroku application DNS to Godaddy Domain?
Related
This may have been answered before (it seems relatively common) but for the life of me I cannot find it, so here we are.
I'm creating a relatively straightforward Ruby on Rails app and am (was?) planning on hosting it on Heroku since I'm already setup there.
The problem I'm having is that I'm creating a landing page builder that needs to allow users to view their website at something like https://their-app.my-app.com. Of course, there will be users who will also want to point their own domains (ex. their-app.com) to that subdomain via a CNAME.
1) Is it possible on Heroku to do that without having to add each one as a custom domain (which of course isn't realistic due to customers being able to add their own).
2) Any recommendations on which service might be the best for hosting this kind of setup? I really love the heroku PaaS setup but of course.. this is a requirement.
Side note: WHen doing it now (Creating a CNAME to point a domain name at the subdomain my app created) I currently get a Heroku page saying "No App Found at this Domain", etc.
Thanks!
Yes, this is doable and automatable on Heroku.
Using the Heroku Platform API, you can programmatically point domains to an app.
Then, your customer will have to point their domain to the value of the cname attribute provided by Heroku.
I've been an amateur developer for quite some time now and this is the first time I've actually needed to set up the domain and SSL for a website. I already bought a domain name from GoDaddy and I'm using my rails as my backend. But it seems that on almost all of the guides online (the ones I've come to search) is for the Heroku paid dynos (I'm on the free tier) or has their website hosted somewhere else/bought the domain somewhere else. As of now, I'm not actually sure how straightforward this should be but any guide to free SSL cert generation and free setup would be nice.
You have 2 options here:
Use Heroku domain app.herokuapp.com as this is encrypted and served through https.
If you want to use a custom domain. There is no way but to use a paid dyno. There were some tutorials on how to do this manually and a couple of projects that allowed you to do so on free dynos but they are all outdated/deprecated.
There is no need to configure anything on Heroku's side if you start off with a paid dyno.
ACM is enabled by default for all Common Runtime apps created after March 21, 2017 that run on Hobby or Professional dynos.
To upgrade, simply run heroku ps:resize web=hobby via heroku cli. Then, to enable letsencrypt automated certificate, simply run heroku certs:auto:enable. Just make sure your DNS is activly pointing to the currect address before doing so or you'll need to verify your DNS target.
Docs: https://devcenter.heroku.com/articles/automated-certificate-management
deprecated project: https://github.com/dmathieu/sabayon
outdated tutorial: https://github.com/dwyl/learn-heroku/blob/master/SSL-certificate-step-by-step-setup-instructions.md
I have used the same setup for my heroku app. By default heroku free tier gives ssl on your web app.
Like if you hit url yourwebsite.herokuapp.com, it is encrypted and provides ssl for free.
But when you will add a custom domain name to your heroku app, then its without ssl. You cannot use ssl on it unless you moved to hobby dyno(paid)
Here is what heroku says
Hello I have an app developed for a client of mine. This app is hosted on heroku on domain http://www.mydomain.com. Client has limited technical knowledge and wants a system that will easily allow him to add/edit content on some sites. Example: customer wants to create a news page and edit it, or he wants to create a blog posts..... The customer does not want to edit the main pages that i have already created for the app. So i was thinking of adding a wordpress site under http://www.mydomain/com/extras and this will be a fully managed wordpress site that my client can edit himself. Is this the correct approach? i researched and apparently it is not easy to host worpress on heroku. your recommendation is highly appreciated
thanks
Buildpacks
If you want to install Wordpress on Heroku, you'll need to use a custom buildback (typically this Wordpress buildpack)
As for running in a buried folder, I suppose it would work if you had the system set up correctly - you may need to create a custom buildpack to handle it all.
Some info for you:-
When you git push heroku, Heroku’s slug compiler prepares your code
for execution by the Heroku dyno manager. At the heart of the slug
compiler is a collection of scripts called a buildpack.
What you'll be looking for is how to create a buildpack to help your application deploy correctly. If you put your Wordpress blog in the following Rails folder, it should be accessible at least (whether it will run is another matter, as the paths might be inconsistent):
/public/path/to/your/blog
This will give you the ability to access the blog from the following URL: domain.com/path/to/your/blog
--
DNS
Another way to achieve this would be to host your Rails app on heroku, whilst deploying the Wordpress site in some shared hosting.
You could then "route" a subdomain, or perhaps a deep folder, with your DNS setup on your host - allowing you to send the traffic to different hosts without the users noticing
So I host with company X and have my domain on there. I deployed my app to heroku and pointed my domain at it. I can't wrap my head around if I am hosting my site on heroku now or if I am hosting it on company X's servers.
I would assume I'm hosting on herokus server because that is the most logical, but just keep having this brainfart.
Could someone please explain this to me?
Your application is on Heroku's server. All company X has done is perform the DNS magic necessary to map the friendly URL (www.yoursite.com) to your Heroku deployment.
Amazon
You should also be aware that Heroku doesn't actually "store" the app on its own servers - it uses Amazon's ec2 cloud to create instances of your app
So although you have your domain with company X, your app handled through heroku, it will actually be running in one of Amazon's data centers
Keep that in mind when you start to grow (you may find benefits of using Amazon directly)
I need to create the sales site for my application in wordpress as their themes are far more impressive than anything I could create in rails in a short time period. I need the rails app to be on a subdomain such as app.mydomain.com and Id prefer to host with heroku.
Is this possible and if so how?
If not what do other app providers do for their sales site and blog?
You might find your answer here: http://docs.heroku.com/custom-domains
The doc is good and the video explains how to customize your DNS. You'll be able to point your DNS wherever you want.
EDIT 1
Far more easier:
Go to your DNS provider
add a CNAME for app.mydomain.com
make it point to your Heroku's URL.