Coder Social home page Coder Social logo

aum's Introduction

AUM

This project is a responsive website for the schedule of the Association de Ultimate de Montréal (AUM) games. It is hosted at http://aum.mathieularose.com

This is a static website generated every hour based on the data at http://www.montrealultimate.ca

Development

Dependencies

  • Python 3
  • Virtualenv

Setup

Generate the virtual environment: make env

Edit-compile-test loop

In a terminal:

  1. Start an http server: make start

In another terminal:

  1. Activate the virtual environment: source env/bin/activate
  2. Edit
  3. Compile: make generate
  4. Test: open your browser at http://127.0.0.1:8000
  5. Go to step 2

If you don't want to fetch the pages from http://www.montrealultimate.ca every time you generate the website, replace step 3 with USE_CACHE=y make generate. It will use a local cache.

Operations

Setup

On dokku:

$ dokku apps:create aum
$ dokku domains:add aum aum.mathieularose.com
$ dokku config:set aum BUILDPACK_URL=https://github.com/larose/buildpack-nginx
$ dokku apps:create aum-updater
$ dokku config:set aum-updater GIT_AUTHOR_NAME=aum-updater GIT_COMMITTER_NAME=aum-updater [email protected] [email protected]
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
$ ssh-keys:add /home/ubuntu/.ssh/id_rsa
$ sudo dokku ssh-keys:add ubuntu ~/.ssh/id_rsa.pub
$ dokku config:set aum-updater SSH_PRIVATE_KEY="`cat ~/.ssh/id_rsa | tr '\n' '#'`"
$ dokku config:set aum-updater SSH_PUBLIC_KEY="`cat ~/.ssh/id_rsa.pub | tr '\n' '#'`"
$ dokku ps:scale aum-updater web=0 cron=1
$ sudo su dokku
$ crontab -e
$ # @hourly dokku enter aum-updater cron make deploy-from-updater

On local machine:

$ git remote add d1 [email protected]:aum-updater

Manual deployment

$ make deploy

aum's People

Contributors

larose avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.