LibreSign / LibreSign/site

Deploy preview using non production flag

Open
#483 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
5
Forks
13
Avg merge
2d 4h
Merged PRs (30d)
6

Description

The preview deployment currently uses composer prod to build the site:

https://github.com/LibreSign/site/blob/7366ce118218e4391b202549a42022be7f55a399/.github/workflows/preview.yml#L49

Because of this, the preview can use some production settings.

We need to check which settings should be used for the preview environment and fix the build. If needed, we can create a specific config file for previews instead of using the production config.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with .github/workflows/preview.yml at the referenced build step and compare the settings selected by composer prod with the needs of the preview environment. Identify the appropriate preview configuration, then verify the workflow builds with it and no longer uses production settings.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, php
Domain
build-system, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.