Skip to content

clue-labs/clue.engineering

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clue.engineering

Source code for https://clue.engineering/

Install

Install dependencies:

composer install

Build website:

vendor/bin/sculpin generate

This will create a build/ directory that contains the static website that can be accessed with a web browser.

Deploy

Then deploy build/ behind your favorite webserver (Apache + PHP-FPM etc.).

Additionally, this should be deployed behind a reverse proxy (nginx) that is responsible for HTTPS certificate handling and forcing HTTPS redirects.

Additionally, Apache has been configured to cache static files for 1 day.

For testing purposes, you can use the official php docker image like this:

docker run -it --rm -p 80:80 -v "$PWD"/build:/var/www/html php:8.1-apache sh -c "ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled; apache2-foreground"

Tests

You can run some simple acceptance tests to verify the deployed website works as expected by running:

tests/acceptance.sh https://clue.test

If you're using the above php docker image, you can run this test like this:

tests/acceptance.sh http://clue.localhost

Releases

No releases published

Packages

No packages published

Languages

  • HTML 66.2%
  • Twig 26.3%
  • CSS 4.6%
  • Shell 1.5%
  • Other 1.4%