Difference between revisions of "Editing the Einstein Toolkit website"

From Einstein Toolkit Documentation
Jump to: navigation, search
 
Line 1: Line 1:
 
==== Overview ====
 
==== Overview ====
  
The Einstein Toolkit website is at [[https://einsteintoolkit.org/]].  The source is hosted in a subversion repository at https://svn.einsteintoolkit.org/www.  Email maintainers@einsteintoolkit.org if you want commit access.  Authentication is via a CCT account.
+
The Einstein Toolkit website is at https://einsteintoolkit.org.  The source is hosted in a subversion repository at https://svn.einsteintoolkit.org/www.  Email maintainers@einsteintoolkit.org if you want commit access.  Authentication is via a CCT account.
  
 
To make a change, first check out the website.  You will need to check out the entire website, as the pages link to absolute URLs in /global.
 
To make a change, first check out the website.  You will need to check out the entire website, as the pages link to absolute URLs in /global.

Revision as of 03:05, 16 June 2016

Overview

The Einstein Toolkit website is at https://einsteintoolkit.org. The source is hosted in a subversion repository at https://svn.einsteintoolkit.org/www. Email maintainers@einsteintoolkit.org if you want commit access. Authentication is via a CCT account.

To make a change, first check out the website. You will need to check out the entire website, as the pages link to absolute URLs in /global.

   svn checkout --username <username> https://svn.einsteintoolkit.org/www EinsteinToolkitWeb

(you can of course use git-svn if you prefer).

Since the website uses PHP, you will need to use a web server to browse your local copy of the website.

Apache

If you are comfortable with Apache, you can set up a virtual host for the ET. You may find the following fragment of /etc/apache2/extra/httpd-vhosts.conf useful as a starting point.

   <VirtualHost *:80>
       DocumentRoot "/path/to/Sites/EinsteinToolkitWeb"
       ServerName einsteintoolkit.local
       ErrorLog "/var/log/apache2/einsteintoolkit.localhost-error_log"
       CustomLog "/var/log/apache2/einsteintoolkit.localhost-access_log" common
   </VirtualHost>

Add

   127.0.0.1       einsteintoolkit.local

to /etc/hosts and visit https://einsteintoolkit.local.

Docker

If you use docker, you can

  docker run -it --rm -v $PWD/EinsteinToolkitWeb:/var/www/html -p 8080:80 --name etwebsite php:5.6-apache

then visit

 http://<docker-ip>:8080

Committing

When you have checked your changes, just commit, and the ET website will be updated automatically.