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

Install · Changes

Page history
Created Install (markdown) authored Oct 17, 2018 by Luc Donnet's avatar Luc Donnet
Hide whitespace changes
Inline Side-by-side
Showing with 79 additions and 0 deletions
+79 -0
  • Install.md Install.md +79 -0
  • No files found.
Install.md 0 → 100644
View page @ 6b5f0840
# Edwig
<a href="https://codeclimate.com/github/af83/edwig/maintainability"><img src="https://api.codeclimate.com/v1/badges/bdf4ce25da411be47722/maintainability" /></a>
## Installation
### 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