Skip to content

refactor: deploy script changes - #64

Merged
brunomenezes merged 12 commits into
mainfrom
changes/migration-fly-io
Jul 28, 2026
Merged

refactor: deploy script changes#64
brunomenezes merged 12 commits into
mainfrom
changes/migration-fly-io

Conversation

@brunomenezes

@brunomenezes brunomenezes commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

Code changes to support different deployment strategies. Before, it was tailored to a straightforward PaaS deployment (heroku), which means:

  1. Run the processor -> triggers migrations to be applied before automatically.
  2. Run the graphQL API already have access to the structured database.
  3. Everything is self-contained and shared between the different components.

The goal of the changes is to address the following:

  • Decouple parts/actions; e.g., running the processor does not necessarily mean running the migrations.
  • Given the above decoupling, the operator can use different strategies; it can be broken down into different levels of access depending on which application component they are deploying.

Other changes:

  • Add mapping of the Prometheus port per chain and add the possibility to configure each individually. README updated.
  • Add a new docker-compose-test.yml to have local runs and testing.
  • Update the Dockerfile as it is the main entry point for the new cloud environment.

…d command. Update the description to highlight that.
…ode:child_process for safer control mechanism

* Replace deprecated url.parse with URL API.
* Replace shell creation with child_process spawn function for better process control, security and portability.  It avoid embedding credentials in a string command that may leak in logs or if misquoted may change the underline command or due to shell injection cause security issues.
* Remove unused npm-scripts. It only targets the sqd npm-script and pass arguments to it simplifying the list of existing npm-scripts.
@socket-security

socket-security Bot commented Jul 22, 2026

Copy link
Copy Markdown

No dependency changes detected. Learn more about Socket for GitHub.

👍 No dependency changes detected in pull request

- The rate-limit is really tight through cannon/cli. Besides experimentation with sequential calls some of the requests will fail.
@brunomenezes
brunomenezes force-pushed the changes/migration-fly-io branch 2 times, most recently from 0b2febb to eecb6ec Compare July 22, 2026 16:21
@brunomenezes
brunomenezes force-pushed the changes/migration-fly-io branch from eecb6ec to 210e18c Compare July 22, 2026 16:35
@brunomenezes
brunomenezes force-pushed the changes/migration-fly-io branch from 210e18c to d64c4e8 Compare July 22, 2026 16:43
…t when configured.

* Add a new PROCESSOR_PROMETHEUS_PORT_*  to control the port the metrics will be exposed.
* Update documentation
* Update processor tests.
* Remove the ENV PROCESSOR_PROMETHEUS_PORT declaration in the dockefile.
@brunomenezes
brunomenezes force-pushed the changes/migration-fly-io branch from 844f574 to 1ef9675 Compare July 23, 2026 15:08
@brunomenezes
brunomenezes requested a review from tuler July 28, 2026 13:52
@brunomenezes
brunomenezes marked this pull request as ready for review July 28, 2026 13:53
@brunomenezes
brunomenezes merged commit e94105d into main Jul 28, 2026
4 checks passed
@brunomenezes
brunomenezes deleted the changes/migration-fly-io branch July 28, 2026 15:50
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