Skip to content
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
specification
.gitignore
LICENSE
README.md
config.py
debug.py
requirements.txt
website.wsgi

README.md

UAVCAN website

Sources of the uavcan.org website.

Running locally

A GNU/Linux-based OS is required.

pip3 install -r requirements.txt
./debug.py

Push-to-deploy

A sample git post-receive hook is shown below.

#!/bin/sh

WORKTREE=/var/www/uavcan.org        # Web server root
GITDIR=/var/repo/uavcan.org.git     # Repository root

git --work-tree=$WORKTREE --git-dir=$GITDIR checkout -f
cd $WORKTREE && git --work-tree=$WORKTREE --git-dir=$GITDIR submodule update --init --recursive

chmod 777 -R $WORKTREE

sudo systemctl reload apache2

In order to use push-to-deploy, add a new remote to your copy of the git repository (adjust the URL as necessary):

git remote add production ssh://ubuntu@ec2-18-196-176-112.eu-central-1.compute.amazonaws.com/var/repo/uavcan.org.git

Then just say git push production whenever you want things released.

You can’t perform that action at this time.