Skip to content

refactor: remove deployment code#4

Merged
j-cray merged 6 commits intomainfrom
refactor--remove-deployment-code
Mar 25, 2026
Merged

refactor: remove deployment code#4
j-cray merged 6 commits intomainfrom
refactor--remove-deployment-code

Conversation

@j-cray
Copy link
Copy Markdown
Owner

@j-cray j-cray commented Mar 25, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 25, 2026 00:30
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly refactors the project by externalizing all deployment-related infrastructure and processes. The changes remove the Docker build configuration, Docker Compose setup, Nginx configuration, and all associated deployment scripts and documentation. This move simplifies the repository by focusing solely on the application's core logic and development environment, delegating deployment concerns to an external meta-repository or system.

Highlights

  • Deployment Code Removal: All Docker-related deployment files, including Dockerfile, docker-compose.prod.yaml, and nginx/nginx.conf, have been removed from the repository.
  • Deployment Scripts Eliminated: A comprehensive set of deployment scripts, such as deploy.sh, init_ssl.sh, remote_build.sh, and others, have been deleted, indicating a shift away from self-managed deployment.
  • Documentation Updates: Project documentation in GEMINI.md, README.md, and docs/LOCAL_DEV.md has been updated to reflect that deployment is now handled externally, removing previous instructions and architectural details related to local deployment.
  • Nix Environment Cleanup: The google-cloud-sdk dependency has been removed from flake.nix, streamlining the development environment by removing tools no longer needed for in-repo deployment.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request performs a significant refactoring of the project's deployment strategy, removing all Docker Compose, Nginx, Certbot, and related deployment scripts. The documentation in GEMINI.md, README.md, and docs/LOCAL_DEV.md has been updated to reflect that deployment is now managed externally. Additionally, the google-cloud-sdk dependency has been removed from flake.nix. Feedback indicates that further documentation updates are needed across other docs/ files for consistency, and the removal of google-cloud-sdk might impact the scripts/import_journalism.py script, requiring attention to its gsutil dependency.

I am having trouble creating individual review comments. Click here to see my feedback.

README.md (9-11)

medium

While you've correctly removed the deployment section from this README.md, several other documentation files still contain outdated deployment instructions and references to deleted files (like compose.prod.yaml and various deployment scripts). To ensure the documentation remains consistent, it would be beneficial to also update or remove the deployment-related content from other files as part of this refactoring.

Files with potentially outdated information include:

  • docs/AUTH_IMPLEMENTATION.md
  • docs/CACHING.md
  • docs/NIX_SETUP.md (still references google-cloud-sdk)
  • docs/SETUP_ADMIN.md
  • docs/timeout_fix_summary.md

flake.nix (61)

medium

Removing google-cloud-sdk is consistent with the goal of this PR. However, this may break scripts/import_journalism.py, which uses gsutil to interact with Google Cloud Storage. If this script is still in use, its dependency on gsutil will need to be addressed, for example by documenting it as a required manual installation or finding an alternative.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes in-repo production deployment assets (scripts, Docker/Compose, Nginx config, and deployment docs), and updates a few developer-facing docs/configs to reflect that deployment is now handled elsewhere.

Changes:

  • Deleted remote/prod deployment scripts and first-time infra/SSL helpers under scripts/.
  • Removed production containerization/reverse-proxy assets (Dockerfile, docker-compose.prod.yaml, nginx/nginx.conf) and deployment documentation.
  • Updated flake.nix, README.md, and GEMINI.md to drop/adjust deployment references.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
scripts/remote_setup.sh Removed remote server setup script.
scripts/remote_build.sh Removed remote build/restart orchestration script.
scripts/install_compose_plugin.sh Removed Docker Compose installer helper.
scripts/init_ssl.sh Removed first-time SSL initialization helper.
scripts/init_infra.sh Removed GCP infra bootstrap script.
scripts/init_certbot.sh Removed certbot bootstrap helper.
scripts/deploy.sh Removed the main deployment entrypoint script.
nginx/nginx.conf Removed in-repo Nginx reverse proxy configuration.
docker-compose.prod.yaml Removed production Compose definition.
Dockerfile Removed Docker build definition.
docs/deployment.md Removed deployment guide (lowercase path).
docs/DEPLOYMENT.md Removed deployment guide (uppercase path).
docs/LOCAL_DEV.md Removed the “Production Deployment” section snippet.
flake.nix Removed google-cloud-sdk from dev shell inputs.
README.md Removed deployment section and adjusted architecture bullets.
GEMINI.md Updated deployment ownership statement.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@j-cray j-cray merged commit b974ebb into main Mar 25, 2026
2 of 3 checks passed
@j-cray j-cray deleted the refactor--remove-deployment-code branch March 25, 2026 00:59
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