I want to get a custom domain for my flask site, I bought a domain already from freenom, and I want to use cloudfare to host it, but how do I do that?
I just used python anywhere to host my app you can just google it!
Related
I am currently developping a SASS web application, and I want to deploy my react app under an url like "https://app.my-website.example". So I tried to buy the domain name "app.my-website.example", but apparently, domain name cannot contain "." character.
How can I deploy it under an url like "https://app.my-website.example" ?
I have seen quantity of modern websites with url containing "app." at the beginning.
For example, website about crypto usually have a traditional static website describing the project, deployed on an url like "https://website.example". And then, their actual application, which does stuff, is deployed on an url like "https://app.website.example".
This is also true for most web application out there.
I use AWS Amazon cloud if it helps you answer me.
Btw, I have already bought the domain name like "my-website.example" and have deployed my static website on it.
Here is the solution.
So the answer to my question is that I need to create a sub domain inside my main domain.
I don't need to buy anything else to create the subdomain, since I already own the domain. It is the main advantage compared to buying "app-mywebsite.com". Plus, it will be easier for google to reference my app.
On amazon, you need to go to the "route 53" service to create the subdomain and then redirect it to you application. The doc to do that is here :
https://aws.amazon.com/premiumsupport/knowledge-center/create-subdomain-route-53
I have finished coding a Django App. In that app I have created two models in order to record some project information. Also I am showing project locations with markers on a map (OpenStreetMap) by using leaflet.js.
I will use this app only by starting an offline server like "python manage.py runserver". I am using "Firefox" to display the django app.
I really wonder if somehow the information that I keep in my django models or the markers on the OpenStreetMap is somehow reachable by others via on Firefox or leaflet.
Thank you very much in advance.
If you are in the same wi-fi network you can run python manage.py runserver 0.0.0.0:8000 and then your application will be visible for everybody by typing http://your-pc-up:8000
If you want to make it public you have to buy domain (or register free domain) and put it in your vpc / free hosting. There are plenty of tutorial out there which show how to host an application.
This tutorial is really easy and straight forward: http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/
You can use ngrok service which gives you domain such as https://c2757c5f.ngrok.io and other users can visit it by accessing this url. In addition, this url can be visited from anywhere!
See more details by visiting here
If you want other users can visit you website from you local server, then you can run manage.py runserver 0.0.0.0:8000. Your app is visible to other users on same network by accessing this http://your-ip:8000/
You could know you ip by using ifconfig command on linux or ubuntu
I have a website hosted on Wordpress at domain [my domain name].com. I built an app using Django that is currently deployed on Heroku at [my domain name].herokuapp.com. The apps do not have conflicting routes. For example, the '/' route does not exist on the app I built myself. Is it possible to configure my DNS settings on Heroku such that I can use my custom domain name where a Wordpress website already lives?
I think you are asking if both of your applications can live at the same domain.
The answer is yes....sort of.
Subdomains
Your two sites would need to be on separate subdomains. For example your heroku app might have a CNAME record pointing to it like this
djangoapp.YOURDOMAIN.com. CNAME [my domain name].herokuapp.com.
I realize this might be confusing, but your django app would live at a prefix/subdomain.
Then the CNAME for your wordpress site might look like:
www.YOURDOMAIN.com. CNAME wordpress.com/YOURBLOG
No. Not in the same domain.
Treas gave you a compromise but you understand that siteA.mydomain.com and siteB.mydomain.com are two different domains.
You CAN NOT have the following situation:
mydomain.com/ <- This goes to the wordpress site
mydomain.com/a <- This one goes to the heroku site
mydomain.com/a/b <- But this one goes to the wordpress site
mydomain.com/c <- and this one goes to the wordpress again.
You have a DNS configuration issue. It is not related to Heroku nor Wordpress. DNS can not be configured with routes. They can with sub-domains like trejas has described.
I have two separate rails apps. I'd like to connect them by simply linking them in the header. One is, for example, http://example.com and I'd like the other to be, for example http://different.example.com.
I added the relevant domain to the first heroku app and it's working. I created a subdomain with my domain host, setting the host CNAME to the previously referenced "different." I then attempted to add the subdomain to the heroku app by running the command:
$ heroku domains:add different.example.com
Despite that, it's not working. Any thoughts on what I've done wrong? I followed the instructions from my domain host and on heroku's documentation.
If you made a recent change, it's possible that your connection to the Internet or ISP might be serving you a cached, old version of where you want to go.
Try accessing the site from another entry point such as through a third party like https://crossbrowsertesting.com and then you can rule out this possibility.
So I have a domain, lets call it patrick.net. I also have a remote server at some IP address, let's say 123.435.789.000. Developing a Django framework and have all of the URLs set up. How do I make the transition from http://localhost:8000/profile to http://patrick.net/profile?
If you're hosting the application on your own server, you should review the Django docs on deployment: https://docs.djangoproject.com/en/dev/howto/deployment/ There's a lot of variables in terms of what your system setup will look like, so there's no easy answer.
If your needs are less complex, I'd recommend a more managed solution like Webfaction or Heroku