Skip to content

Migration to grisp_tools 2.x#4

Closed
LostKobrakai wants to merge 1 commit intogrisp:masterfrom
LostKobrakai:pr/support-grisp-2
Closed

Migration to grisp_tools 2.x#4
LostKobrakai wants to merge 1 commit intogrisp:masterfrom
LostKobrakai:pr/support-grisp-2

Conversation

@LostKobrakai
Copy link
Copy Markdown
Contributor

This is a first attempt at naively updating the existing codebase. I've discussed an alternative – more integrated into native mix releases – appraoch with @eproxus, which I will try to get at later this week.

@LostKobrakai
Copy link
Copy Markdown
Contributor Author

Some comments for the current state of changes. Things are very rough around the edges.

  • File overlays don't work. Additional files need to be copied manually.
  • Mix release start scripts use an additional boot env variable. This can be set in grisp.ini as -boot_var RELEASE_LIB {{release_name}}/lib

Release config used:

  def grisp do
    [
      otp: [verson: "23.0"],
      deploy: [
        # pre_script: "rm -rf /Volumes/GRISP/*",
        # destination: "tmp/grisp_sd"
        # post_script: "diskutil unmount /Volumes/GRISP",
      ]
    ]
  end

  def releases do
    {:my_app,
       [
         overwrite: true,
         cookie: "grisp",
         include_erts: &MixGrisp.Release.erts/0,
         steps: [&MixGrisp.Release.init/1, :assemble],
         # For epmd support
         # Add to deps
         # {:epmd, github: "erlang/epmd", ref: "4d1a59", runtime: false},
         # and uncomment
         # applications: [epmd: :none, my_app: :permanent],
         strip_beams: Mix.env() == :prod
       ]}
  end

@ziopio
Copy link
Copy Markdown
Member

ziopio commented Mar 21, 2024

Solved in #7

@ziopio ziopio closed this Mar 21, 2024
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