Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
app
bin
config
db
infra
lib
log
public
storage
test
tmp
vendor
.babelrc
.gitignore
.postcssrc.yml
.ruby-gemset
.ruby-version
Gemfile feat(footer): add footer and cleanup some css/layout ; prepare for ne… Apr 23, 2019
Gemfile.lock
Procfile
Procfile.dev
README.md
Rakefile
config.ru
package.json
yarn.lock

README.md

CircleCI

README

This README would normally document whatever steps are necessary to get the application up and running.

Infra

Things you may want to cover:

  • Ruby version: 2.5.1
  • Database
  • Install Postgres 10.6
  • Initialize with : initdb /usr/local/var/postgres -E utf8
  • Create local db : createdb monstage
  • Start with : pg_ctl -D /usr/local/var/postgres start
  • Stop with : pg_ctl -D /usr/local/var/postgres stop
  • Install html5validator : pip install html5validator
  • Install postgis :
    • If you are using Postgres.app, Postgis is already here
    • If you installed postgres with Homebrew, run : brew install postgis
  • Setup Postgis : rake db:gis:setup

Build: test, dev

dev

start project

foreman start -f Procfile.dev

tooling: linting, etc...

  • ensure we are not commiting a broken circle ci config file : cp ./infra/dev/pre-commit ./git/hooks/
  • consult emails sent in development environment with mailcatcher:
  • gem install mailcatcher
  • open http://127.0.0.1:1080/

test

units test

rails test

system / e2e, runs within a browswer without (broken) JS

rails test:system

w3c (using vnu.jar)

rails test:w3c

Run: ci, staging, production

see build status at: CircleCI

both environments are limit regarding env var dependencies, but can be setuped via tools : infra/staging|production/set_env.sh

staging

  • deployement automated via CI (merge on master, push on staging)
  • push on staging can be "forced" manually using infra/staging/deploy.sh
  • see other tools in infra/staging/*.sh (logs, console...)

production

  • prefer heroku promote staging infra/production/deploy/promote.sh
  • can be "forced" manually using infra/production/deploy/push.sh
  • see other tools in infra/production/*.sh (logs, console...)
You can’t perform that action at this time.