fix: NixOS deployment code #254
No reviewers
Labels
No labels
api service
blocked
bug
component: fediversity panel
component: nixops4
documentation
estimation high: >3d
estimation low: <2h
estimation mid: <8h
productisation
project-management
question
role: application developer
role: application operator
role: hosting provider
role: maintainer
security
technical debt
testing
type unclear
type: key result
type: objective
type: task
type: user story
user experience
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: fediversity/fediversity#254
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fricklerhandwerk/Fediversity:fix-packaging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
simplify the configuration module
the
package
attribute makes little sense to be user-configurable,since it will always need to be the derivation defined in this very
repository. for debugging one may as well change the original code itself.
unbreak deployment
setting
CREDENTIALS_DIRECTORY
disabled the systemd mechanism set upin the configuration module.
remove unneeded configuration for deployment
unbreak integration tests
before that missed waiting for the service to create some
state before running the application-level tests.
Closes Fediversity/Fediversity#101
Check https://demo.fediversity.eu to validate that there's something deployed.
0b57a35f0a
tof963ae8443
@ -25,4 +20,2 @@
package = panel;
production = true;
domain = "demo.fediversity.eu";
host = "0.0.0.0";
was this not needed?
Apparently not, the default is
127.0.0.1
and that works, why wouldn't it?@ -31,4 +24,2 @@
};
port = 8000;
settings = {
DATABASE_URL = "sqlite:///var/lib/${name}/db.sqlite3";
i imagine once in prod we switch to postgres we should specify
DATABASE_URL
again here?Yep
@ -33,4 +26,0 @@
settings = {
DATABASE_URL = "sqlite:///var/lib/${name}/db.sqlite3";
CREDENTIALS_DIRECTORY = "/var/lib/${name}/.credentials";
STATIC_ROOT = "/var/lib/${name}/static";
are you sure this was not needed? a local
runserver
now gets me:Yes, sorry, fixed. Ideally we'd do this whole configuration bit in exactly one shape, but as discussed verbally this is sightly tricky and I won't get into it right now.
thanks for cleaning the mess i left 😭, tho this version broke local dev
f963ae8443
to3364d6c972