Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion Adding Changes to a Project on GitHub

Juliette Tworsey
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,425 Points

PHP integrated sites and Github

Hi,

I was wondering...

Is it a good idea to upload a PHP integrated site on Github or should I stick strickly with front-end languages when creating repos on Github?

Thanks!

2 Answers

Hey Juliette,

GitHub is a platform that lets you store projects, track projects (with git), collaborate on projects and more. Not only can these projects consist of PHP files but they can in fact be any file. I know some people that use GitHub for Sketch files even. I'm curious where you got the idea that GitHub is only for front-end languages?

Juliette Tworsey
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,425 Points

Hi Mikis,

Thanks for getting back to me so quickly.....poorly worded question on my part. I am working on a site that I want to be hosted live (in addition to it being a repo) on Github and I heard (here on Treehouse: https://teamtreehouse.com/library/introducing-github-pages) that personal sites on Github were incompatible with PHP.. I guess that I was hoping that there might be a way around that.

Is there a workaround that may work in this situation?

Cheers:-)

Kevin Korte
Kevin Korte
28,149 Points

No, github pages will only work with html, css, and js. It does not have the ability to parse PHP, Ruby, Python, or any other backend langauge. All github pages is doing is simply server files to the browser, so the files can only have code browsers understands.

But, you can have a CMS and host on github pages.....which contradicts what I just said, right? Check out jekyll: https://jekyllrb.com/

It's a CMS for hosting on github pages.

Kevin Korte
Kevin Korte
28,149 Points

Jekyll is really cool! It's the best way in my opinion to run a blog or portfolio site and host it on github pages.