Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix: Port to Devenv #79

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Nix: Port to Devenv #79

wants to merge 5 commits into from

Conversation

jtojnar
Copy link
Owner

@jtojnar jtojnar commented Jan 7, 2025

This will allow us to use in-project MySQL database instance.

@jtojnar jtojnar force-pushed the devenv branch 4 times, most recently from 3f6aac3 to d51ca14 Compare January 7, 2025 08:58
This will allow us to use in-project MySQL database instance.

- Started with `nix flake init --template github:cachix/devenv` as per https://devenv.sh/guides/using-with-flakes/
- Using devenv-nixpkgs https://devenv.sh/blog/2024/03/20/devenv-10-rewrite-in-rust/#devenv-nixpkgs
- Remove flake-compat as we switched to `use flake`.
This is somewhat equivalent to what `www/.htaccess` does.
Now testing is as simple as

    ln -sf $PWD/.github/workflows/private.neon app/Config/
    devenv up

The development HTTP server will be running on http://localhost:8084/

TODO: Re-evaluate HTTP port selection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant