GithubHelp home page GithubHelp logo

patentcounsel / unocha-site Goto Github PK

View Code? Open in Web Editor NEW

This project forked from un-ocha/unocha-site

0.0 0.0 0.0 13.52 MB

Drupal 10 version of the corporate site.

Shell 0.33% JavaScript 4.88% PHP 36.68% CSS 13.15% Makefile 0.08% HTML 8.21% Dockerfile 0.23% Twig 36.44%

unocha-site's Introduction

UN-OCHA

This is the Drupal 10 codebase of the UN-OCHA corporate site.

Local development

The local directory contains a script and setting files that can be used to quickly set up a local version of the site that will be reachable, by default, at https://unocha-local.test.

Prevent committing changes to your local files:

Tests can be run locally with act: act -j tests

Some useful commands:

  • ./local/install.sh -m -c -i will create a new instance from scratch.
  • ./local/install.sh -m -d will recreate the image and containers and install the dev dependencies but will preserve the existing database.
  • ./local/install.sh -x -v will remove the containers and file and database volumes.

Some useful settings to edit:

Some workflow tips:

  • Install or update packages directly in the container, ex: docker exec -it -w /srv/www unocha-local-site composer require drupal/double_field:^4.1. This installs the module in the container but updates the repository's composer files so the changes can be committed.
  • Put site specific config in local/shared/settings/settings.site.php
  • Have git ignore modifications to the local directory with git update-index --skip-worktree local (or specific files).
  • Disable the above with git update-index --no-skip-worktree local

unocha-site's People

Contributors

left23 avatar orakili avatar lazysoundsystem avatar unocha-jenkins avatar cafuego avatar attiks avatar dependabot[bot] avatar

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.