Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • E edwig
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Administrator
  • edwig
  • Wiki
  • Install

Last edited by Luc Donnet Oct 17, 2018
Page history

Install

Application

git clone git@github.com:af83/edwig.git
cd edwig

Postgres

psql
postgres=# CREATE USER "edwig" SUPERUSER PASSWORD 'edwig';
CREATE ROLE
postgres=# CREATE DATABASE edwig;
CREATE DATABASE
postgres=# CREATE DATABASE edwig_test;
CREATE DATABASE

Database configuration can be defined in config/database.yml

Apply migrations

edwig migrate up
EDWIG_ENV=test edwig migrate up

Rollback migrations

edwig migrate down
EDWIG_ENV=test edwig migrate down

Migration folder can be specified with

edwig migrate -path=path/to/migrate/files [...]

Populate

psql -U edwig -d edwig -a -f model/populate.sql

Run Edwig

Server

edwig api

Checkstatus

edwig check http://url.to.check

Configuration

To run Edwig in a specific environment

EDWIG_ENV=development edwig [...]

default environment is development

To load a custom configuration directory

edwig -config=config/directory/path [...]

You need to specify 3 files : config.yml, database.yml, <environment>.yml

Configuration try the given path if it exists, then the environment variable EDWIG_CONFIG, then /config

Run Tests

go test github.com/af83/edwig/...
cucumber -t ~@wip
Clone repository
  • Home
  • Install