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

WIP: Address deploy-to-nixos issues #1869

Closed

Conversation

AronNovak
Copy link
Contributor

No description provided.

@@ -228,7 +228,7 @@ ihpFlake:
fi

${pkgs.nixos-rebuild}/bin/nixos-rebuild switch -j auto --use-substitutes --fast --flake .#$1 --target-host $1 --build-host $1 --option substituters https://digitallyinduced.cachix.org --option trusted-public-keys digitallyinduced.cachix.org:digitallyinduced.cachix.org-1:y+wQvrnxQ+PdEsCt91rmvv39qRCYzEgGQaldK26hCKE=
ssh $1 systemctl start migrate
ssh $1 nix-shell --run migrate
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mpscholten It seems systemctl is out of question here. I SSHed into the AMI image referred in the docs, and there's no such system service.

@@ -228,7 +228,7 @@ ihpFlake:
fi

${pkgs.nixos-rebuild}/bin/nixos-rebuild switch -j auto --use-substitutes --fast --flake .#$1 --target-host $1 --build-host $1 --option substituters https://digitallyinduced.cachix.org --option trusted-public-keys digitallyinduced.cachix.org:digitallyinduced.cachix.org-1:y+wQvrnxQ+PdEsCt91rmvv39qRCYzEgGQaldK26hCKE=
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to invoke this from the project root by hand? I'd like to debug the error of error: invalid character in Base64 string: '' that likely comes from here.
I tried nixos-rebuild directly, and nix-shell --run nixos-rebuild, none of these work.

@amitaibu
Copy link
Collaborator

Can be closed?

@AronNovak AronNovak closed this Feb 15, 2024
@AronNovak AronNovak deleted the deployment-fixes branch February 15, 2024 04:06
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.

2 participants