Login / Get an account Logout
  • view
  • history

run-gitit.sh

#!/bin/bash

set -eu

cat <<END >> ./gitit.conf
oauthclientid: $GITIT_OAUTH_CLIENT_ID
oauthclientsecret: $GITIT_OAUTH_CLIENT_SECRET
END

if [ ! -d ./wikidata ]; then
  (
    git clone "$GITIT_GIT_URL" ./wikidata
    cd ./wikidata

    echo -e '#!/bin/sh\ngit push origin master' > .git/hooks/post-commit
    chmod +x .git/hooks/post-commit

    git config 'user.email' "$GITIT_GIT_USER_EMAIL"
    git config 'user.name' "$GITIT_GIT_USER_NAME"
  )
fi

gitit --config-file=./gitit.conf --port="$PORT"
powered by gitit × Haskell on Heroku
Site
  • Front page
  • All pages
  • Categories
  • Random page
  • Recent activity
  • Upload a file
  • Help
This page
  • Raw page source
  • Printable version
  • Delete this page