LEINLS3X55PB6TSCNC5RVMDMV56XHTV4MNDUC42H7DDFMPDYUNTAC
WVVD2KC4XQMXZ4AXDV3J4647NRNRKS7OIKMW5YEO7QTP5UXFLOVQC
7VGYLTMURLVSVUYFW7TCRZTDQ6RE2EPSPPA43XKHDOBFWYVVSJHQC
DXIGERDTERUIG7QHHRPKTSJHSQEPJPDJVLUW7YVC7URXBQ4ZJVOAC
ADMKQQGCGVSHHIMVQ4XFRDCG544SBJCYALSKZV45CQQBZ4ACUH2AC
AXKKXBWN4EMUOLV43WN52JSKJPBV7TLSGLNJW5EZXHSJNKCYUWOQC
4ZLEDBK7VGLKFUPENAFLUJYNFLKFYJ3TREPQ7P6PKMYGJUXB55HQC
XZLSHL4DE6B5OEJVXALEYXY5JY2EJYUL2SSUJEGMNX65Y6JRJJUAC
E2KOBKIJ2QMMC77UYNURGCTDGAIIRMBJNG7BMVLSFFPK5RAZ7KFAC
2WOOGXDHVQ6L2MQYUTLJ6H6FVSQNJN6SMJL5DG7HAHFYPJLRT2SAC
site_key.txt
Deployment
==========
At present, the aftok software is deployed on a DigitalOcean virtual machine.
The deployment architecture is relatively unsophisticated; both the
docker engine and a postgres server are running directly on the host VM,
and all other services are provided by containers.
Configuration files for container-based services are stored on the
host vm under `/opt/containers/<container-name>` and are mounted
into the appropriate containers as part of the `docker run` invocations
that are used to run the containers. A high-priority objective is to
simplify this setup by using `docker compose` to orchestrate the
containers, and to containerize the postgres server and data.
Docker Hub
----------
Configuration-free images containing the aftok server application is hosted on
dockerhub at nuttycom/aftok. To push a new version:
~~~{bash}
docker build -t nuttycom/aftok:$(git describe)
~~~
Manual Setup
------------
See `deploy/setup.sh` for a complete list of the operations that were
performed manually on the vm to get the aftok.com server up and running.
build-container:
docker build -t aftok/aftok:latest .
run-local-docker:
docker run --net=host -it -v /home/nuttycom/projects/aftok/docker-conf/:/etc/aftok aftok/aftok:latest
Description: (Describe migration here.)
Created: 2016-10-29 20:54:59.060159 UTC
Depends: 2016-10-13_05-36-55_user-event-log
Apply: |
ALTER TABLE auctions ADD COLUMN created_at timestamp with time zone not null;
ALTER TABLE auctions ADD COLUMN start_time timestamp with time zone not null;
Revert: |
ALTER TABLE auctions DROP COLUMN start_time;
ALTER TABLE auctions DROP COLUMN created_at;