GithubHelp home page GithubHelp logo

kristofcoenen.be's Introduction

Running locally

# Start Directus
podman compose pull
podman compose build --pull
podman compose up -d

# Start Directus again
# Podman Compose doesn't consider condition "service_healthy".
# Therefore, Directus tries to start before DB is healthy and fails to start.
# See https://github.com/containers/podman-compose/issues/866 for more info
podman compose restart directus

# Sync collections and data
npx directus-sync push -c directus-sync/local.js
./directus-data/push.sh

# Run static site generator
sudo apt install -y build-essential libssl-dev pkg-config
cargo install cargo-watch
cargo watch -x run

# In another terminal
cd output
python3 -m http.server

Update schema's

# Pull settings from local
npx directus-sync pull -c directus-sync/local.js

# Setup config for Prod
cp directus-sync/local.js directus-sync/prod.secret.js
editor directus-sync/prod.secret.js

# Compare local with Prod
npx directus-sync diff --debug -c directus-sync/prod.secret.js

# Push state to Prod
npx directus-sync push -c directus-sync/prod.secret.js

Updating GraphQL schema

cargo install --locked cynic-cli
KRISTOFCOENEN_API_BASE_URL=''
KRISTOFCOENEN_API_KEY=''
cynic introspect -H "Authorization: Bearer ${KRISTOFCOENEN_API_KEY:?}" "${KRISTOFCOENEN_API_BASE_URL:?}/graphql" -o schemas/directus.graphql

kristofcoenen.be's People

Contributors

jenswbe avatar

Watchers

Lucian avatar  avatar

kristofcoenen.be's Issues

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.