Static site hosting/create: Difference between revisions

From OpenHatch wiki
Content added Content deleted
imported>Paulproteus
No edit summary
imported>Paulproteus
No edit summary
Line 36: Line 36:
*** row 6: change url
*** row 6: change url
*** row 15: change ssh command
*** row 15: change ssh command

If you want auto-updating:

* on ''staticsites@linode.openhatch.org'', edit ~/public_html/index.cgi to add a new repo_url2directory based on the templates you see.
* on GitHub, configure http://linode.openhatch.org/~staticsites/ as a web hooks URL.
* Visit http://linode.openhatch.org/~staticsites/ to make sure it prints "You probably want to POST." rather than "Error 500".
* That should be it.

Revision as of 19:31, 5 November 2013

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
    • Fork the template repository (as Github limits the number of forks an individual can make of a single repo, you may need to fork a different oh-campus site or email Github to request your previous forks be made free-standing repositories.)
    • 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 NearlyFreeSpeech.net site
    • Visit https://www.nearlyfreespeech.net/
    • Log in as Asheesh (paulproteus) by clicking "Member Login", etc. (sadly I think only Asheesh can do this due to nfs.net permissions)
    • Click "Accounts" in top nav
    • Click "OpenHatch" account
    • Click "Create a new site"
    • Type oh-university_name in the site name field
    • Enter university_name.openhatch.org in the "User another name" form
    • Choose "Static content, stochastic" as site type
    • Click "Create now"
    • Visit the site's admin panel in NFS.net, and then "Add a new alias"
    • Add www.university_name.openhatchorg as an alias
  • Set up domain name with linode.com
    • Log into linode.com (username openhatch) and create a new CNAME record
      • Go to DNS manager and click 'Create new CNAME record'
      • Alias <campusname>.openhatch.org to oh<campusname>.nfshost.com
      • Also alias www.<campusname> to <campusname>
  • SSH into linode

If you want auto-updating: