Skip to content

feat: Deploy only app code, install Elixir via mise on remote#15

Merged
pepicrft merged 1 commit intomainfrom
feat/deploy-app-only
Mar 28, 2026
Merged

feat: Deploy only app code, install Elixir via mise on remote#15
pepicrft merged 1 commit intomainfrom
feat/deploy-app-only

Conversation

@pepicrft
Copy link
Copy Markdown
Owner

Summary

Reduces the deployed tarball from ~36MB to ~2MB by only including application code paths, filtering out OTP and Elixir stdlib that are already available on the remote via mise.

Changes

  • Filter :code.get_path() to exclude OTP lib and Elixir lib directories
  • Install Elixir alongside Erlang via mise install erlang@<ver> elixir@<ver>
  • Add Elixir's lib/*/ebin to the peer's -pa paths so stdlib modules are loadable

Test plan

  • 47 unit tests pass
  • e2e with exe.dev

🤖 Generated with Claude Code

Only deploy application code paths to the sandbox (~2MB), filtering
out OTP and Elixir stdlib paths (~58MB) that are already installed
on the remote via mise. Also install Elixir alongside Erlang so the
remote peer has access to the full Elixir stdlib.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pepicrft pepicrft marked this pull request as ready for review March 28, 2026 10:03
@pepicrft pepicrft merged commit b53c715 into main Mar 28, 2026
6 checks passed
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