Static site hosting/create: Difference between revisions

From OpenHatch wiki
Content added Content deleted
imported>Paulproteus
No edit summary
imported>Shauna
No edit summary
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
''Note: This guideline is written by Shauna, for Shauna. You will likely have to adapt it to your needs/permissions - please do contact us if you need help!''
* Fork a repository of a previous site

** Customize repository name
To create an event webpage in the style of [http://wellesley.openhatch.org/ this one]:
** Customize contents

** Push back to github
* Building the website
* Ask Asheesh to create the Nearly Free Speech.net site.
** Create an organization for the school, for example: oh-hogwarts. Make sure the hello@ email address is used for account name.
** Hopefully this will have better instructions eventually
** Fork [https://github.com/openhatch/oh-campus-template the template repository] into the organization account and rename to be a github.io page, for example: oh-hogwarts.github.io
* Log into linode and create a new CNAME record
** Edit the CNAME record in the template to redirect to the appropriate domain name, for example: hogwarts.openhatch.org
** Go to DNS manager and click 'Create new CNAME record'
** Customize
** Alias <campusname>.openhatch.org to oh<campusname>.nfshost.com
*** Change repository name to reflect event
** Also alias www.<campusname> to <campusname>
*** Change colors if needed (I like to use school colors)
* SSH into linode
*** Change text: date, time, location, name of hosts
** cp -a some_old_dir some_new_dir
*** Create a new sign up form for the event (may just duplicate previous ones) and change the link on the website.
** cd some_new_dir
** Add, commit, and push changes back to Github.
** rm -rf data
* Set up domain name with cloudflare.com
** git clone git://github.com/openhatch/oh-whatever-it-is.git data
** Log into cloudflare.com (username openhatch) and create a new CNAME record
** edit and run ./update_and_push
*** Go to "DNS Settings" (it's an option in the drop-down in the right-most column)
*** Scroll to bottom of page to add two new records:
**** Type: CNAME
**** Alias <campusname>.openhatch.org to oh-<campusname>.github.io
**** Also alias www.<campusname> to <campusname>

Latest revision as of 18:27, 17 April 2014

Note: This guideline is written by Shauna, for Shauna. You will likely have to adapt it to your needs/permissions - please do contact us if you need help!

To create an event webpage in the style of this one:

  • Building the website
    • Create an organization for the school, for example: oh-hogwarts. Make sure the hello@ email address is used for account name.
    • Fork the template repository into the organization account and rename to be a github.io page, for example: oh-hogwarts.github.io
    • Edit the CNAME record in the template to redirect to the appropriate domain name, for example: hogwarts.openhatch.org
    • Customize
      • Change repository name to reflect event
      • Change colors if needed (I like to use school colors)
      • Change text: date, time, location, name of hosts
      • Create a new sign up form for the event (may just duplicate previous ones) and change the link on the website.
    • Add, commit, and push changes back to Github.
  • Set up domain name with cloudflare.com
    • Log into cloudflare.com (username openhatch) and create a new CNAME record
      • Go to "DNS Settings" (it's an option in the drop-down in the right-most column)
      • Scroll to bottom of page to add two new records:
        • Type: CNAME
        • Alias <campusname>.openhatch.org to oh-<campusname>.github.io
        • Also alias www.<campusname> to <campusname>