| CARVIEW |
User and Project Pages
Codaset now provides you with a great and easy way to host your own static site, both for your user account, and for each and every one of your projects.
Codaset pages let you upload - via Git - a selection of static files, including HTML, Javascript and CSS; and host them under an easy to remember URL. You could use these pages as your very own homepage, or as a homepage for your project, and can be styled in your own unique way. Completely independent from Codaset and it's styling.
User Pages
This page that you are reading right now is a perfect example of a user page hosted on Codaset. If you take a look at the URL of this page, it will read "https://pages.codaset.com". Every user - including you - you creates an account on Codaset, will receive a sub-domain just like this. But if you want to upload your own content to it, then there are a few small steps to complete first. Let me take you through them...
-
First, you need a user account at Codaset. Not got one? Then what are you waiting for? Head on over to the Codaset homepage and sign up now.
-
Once you have your user account, login and create your first project. To get your pages working correctly, you will need to give this project a specific name, which must be in the format of "yourname_pages".
So for example; if you had a username of "bobbones". your pages project will need to be called "bobones_pages". Don't forget to leave the "Use Source Control" box checked,as we will be using this projects Git repository to keep our pages updated.
-
Now create a new Git project and commit a file called "index.html" (with some content - obviously!) to this new project. Git push it, and a few minutes later, you will see this same "index.html" file appear on your pages sub-domain at https://bobbones.codaset.com
Project Pages
Project pages work in much the same way as user pages. However, instead of committing your files in a new project, you just create an empty Git branch of your project, and push that to Codaset. The contents of that branch will then be available at https://bobbones.codaset.com/myproject. Here's how...
-
You will be creating a new empty branch of your project. Which means that you must ensure that your current working directory is completely clean. So just remember to commit or stash your changes before proceeding. Once you are sure that your working directory is clean, run the following commands:
$ git symbolic-ref HEAD refs/heads/project_pages $ rm .git/index $ git clean -fdxAnd now you should have an empty working directory.
-
Create a new file called index.html, and commit that. Then Git push it:
$ git push origin project_pagesWait a few minutes, then head on over to https://bobbones.codaset.com/myproject, and you will see your new files.
