CodeWalrus

Development => Web => Topic started by: Ephraim Becker on November 18, 2015, 01:57:07 PM

Title: Creating a custom domain with github pages
Post by: Ephraim Becker on November 18, 2015, 01:57:07 PM
I finally got my website up and running but the URL is complicated. I want a custom domain to switch it to virtualfriend.emb.com. I added the CMAKE file already in gh-pages but now it's saying something that I need a DNS manager pointing to the github IP address. Is there any free DNS managers available?
Title: Re: Creating a custom domain with github pages
Post by: Snektron on November 18, 2015, 02:03:35 PM
Well, in order to get a custom comain, you need to get a domain :P
You can buy one for a few dollars, or you can get a  free one at some sites (http://www.dot.tk/ for example)
Title: Re: Creating a custom domain with github pages
Post by: Ephraim Becker on November 18, 2015, 02:06:47 PM
Is there a way to get a free .com domain?
Title: Re: Creating a custom domain with github pages
Post by: Snektron on November 18, 2015, 02:18:48 PM
Sadly, no. (Unless there is some shady site that offers free .com domains in exchange for completing a survey or something, but its better not to do that ;))
Title: Re: Creating a custom domain with github pages
Post by: alexgt on November 18, 2015, 04:33:38 PM
Just use your computer to host a website (totally secure) :P
Title: Re: Creating a custom domain with github pages
Post by: Ephraim Becker on November 18, 2015, 04:42:10 PM
How do I do that?
Title: Re: Creating a custom domain with github pages
Post by: p4nix on November 18, 2015, 04:47:46 PM
It doesn't matter if you are using your computer as server or github... Github is better for your current purposes I guess.
But you still need a domain, and they are usually cheap but cost a little bit. However, there are also some possibilities to get a domain for free, but I wouldn't recommend that.
Title: Re: Creating a custom domain with github pages
Post by: Ephraim Becker on November 18, 2015, 04:56:14 PM
I think I have no choice but to stick with ephraimb.github.io/Virtual-Friend


How do I get my PHP to work?
Title: Re: Creating a custom domain with github pages
Post by: Ivoah on November 18, 2015, 05:08:42 PM
Quote from: Ephraim Becker on November 18, 2015, 04:56:14 PM
I think I have no choice but to stick with ephraimb.github.io/Virtual-Friend


How do I get my PHP to work?

You can not run PHP on a github pages site. PHP is run on the server, not the client, so obviously GitHub doesn't allow people to run code on their servers. The only way to run PHP is to host the site yourself.
Title: Re: Creating a custom domain with github pages
Post by: Ephraim Becker on November 18, 2015, 05:23:25 PM
Is there a way I can do this for free?
Title: Re: Creating a custom domain with github pages
Post by: Ivoah on November 18, 2015, 05:24:34 PM
Quote from: Ephraim Becker on November 18, 2015, 05:23:25 PM
Is there a way I can do this for free?

Sure, I'd recommend the Abyss (http://aprelium.com/abyssws/) web server.
Title: Re: Creating a custom domain with github pages
Post by: Dream of Omnimaga on November 18, 2015, 05:28:13 PM
Quote from: Cumred_Snektron on November 18, 2015, 02:03:35 PM
Well, in order to get a custom comain, you need to get a domain :P
You can buy one for a few dollars, or you can get a  free one at some sites (http://www.dot.tk/ for example)
.tk has horrible uptime sometimes, though (2004 and 2010 in partucular had 50% uptime). Use it as last resort.
Title: Re: Creating a custom domain with github pages
Post by: Ivoah on November 18, 2015, 05:28:41 PM
Quote from: DJ Omnimaga on November 18, 2015, 05:28:13 PM
Quote from: Cumred_Snektron on November 18, 2015, 02:03:35 PM
Well, in order to get a custom comain, you need to get a domain :P
You can buy one for a few dollars, or you can get a  free one at some sites (http://www.dot.tk/ for example)
.tk has horrible uptime sometimes, though (2004 and 2010 in partucular had 50% uptime). Use it as last resort.

I use noip.com for my site, and have never had problems with it.
Title: Re: Creating a custom domain with github pages
Post by: Ephraim Becker on November 18, 2015, 05:29:58 PM
Quote from: Ivoah on November 18, 2015, 05:24:34 PM
Quote from: Ephraim Becker on November 18, 2015, 05:23:25 PM
Is there a way I can do this for free?

Sure, I'd recommend the Abyss (http://aprelium.com/abyssws/) web server.

Does the server work when the computer is off or does it need to be on the whole time?
Title: Re: Creating a custom domain with github pages
Post by: Ivoah on November 18, 2015, 05:36:28 PM
Quote from: Ephraim Becker on November 18, 2015, 05:29:58 PM
Quote from: Ivoah on November 18, 2015, 05:24:34 PM
Quote from: Ephraim Becker on November 18, 2015, 05:23:25 PM
Is there a way I can do this for free?

Sure, I'd recommend the Abyss (http://aprelium.com/abyssws/) web server.

Does the server work when the computer is off or does it need to be on the whole time?

Of course it has to be on, how would you expect it to do anything if the computer is off?
Title: Re: Creating a custom domain with github pages
Post by: Ephraim Becker on November 18, 2015, 05:38:17 PM
How do I put my files on the server or connect it to github pages?
Title: Re: Creating a custom domain with github pages
Post by: p4nix on November 18, 2015, 05:51:42 PM
http://aprelium.com/abyssws/start.html
Title: Re: Creating a custom domain with github pages
Post by: Ephraim Becker on November 18, 2015, 05:53:32 PM
I want this to work even when my computer is off. What's an alternative?
Title: Re: Creating a custom domain with github pages
Post by: p4nix on November 18, 2015, 05:58:20 PM
Buying a server. Or don't code it in a web language.
Title: Re: Creating a custom domain with github pages
Post by: Yuki on November 18, 2015, 10:14:52 PM
Or check this: https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages/
Title: Re: Creating a custom domain with github pages
Post by: p4nix on November 19, 2015, 02:09:55 PM
Maybe the site title is wrong now, but if I got it right github has the problem of not allowing PHP.
Title: Re: Creating a custom domain with github pages
Post by: Ephraim Becker on November 19, 2015, 02:11:25 PM
Is it a good idea to use JSONP to get around the origin problem?
Title: Re: Creating a custom domain with github pages
Post by: Dream of Omnimaga on November 19, 2015, 03:19:01 PM
Quote from: Ivoah on November 18, 2015, 05:28:41 PM
Quote from: DJ Omnimaga on November 18, 2015, 05:28:13 PM
Quote from: Cumred_Snektron on November 18, 2015, 02:03:35 PM
Well, in order to get a custom comain, you need to get a domain :P
You can buy one for a few dollars, or you can get a  free one at some sites (http://www.dot.tk/ for example)
.tk has horrible uptime sometimes, though (2004 and 2010 in partucular had 50% uptime). Use it as last resort.

I use noip.com for my site, and have never had problems with it.
I did. Your site was unreachable during most of the winter. X.x
Title: Re: Creating a custom domain with github pages
Post by: Yuki on November 19, 2015, 04:45:06 PM
Quote from: p4nix on November 19, 2015, 02:09:55 PM
Maybe the site title is wrong now, but if I got it right github has the problem of not allowing PHP.
You can use Jekyll. https://help.github.com/articles/using-jekyll-with-pages
Title: Re: Creating a custom domain with github pages
Post by: Dream of Omnimaga on November 19, 2015, 04:47:21 PM
On a side note, from experience you'll waste much more time trying to get around limitations than choosing an alternative. Also if you try circumventing limitations and manage to do what you want, then it's not guaranteed that it will continue working in long terms.
Title: Re: Creating a custom domain with github pages
Post by: Yuki on November 19, 2015, 05:12:35 PM
Well yeah, GitHub is better for publishing static pages (they provide Jekyll though), if you want PHP then you definitely need some hosting.