Skip to content

Instantly share code, notes, and snippets.

View konstantinzolotarev's full-sized avatar
🕶️
Working

Konstantin Zolotarev konstantinzolotarev

🕶️
Working
View GitHub Profile
@chrismccord
chrismccord / upgrade.md
Last active April 7, 2023 12:03
Phoenix 1.2.x to 1.3.0 Upgrade Instructions

If you want a run-down of the 1.3 changes and the design decisions behidn those changes, check out the LonestarElixir Phoenix 1.3 keynote: https://www.youtube.com/watch?v=tMO28ar0lW8

To use the new phx.new project generator, you can install the archive with the following command:

$ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez

Bump your phoenix dep

Phoenix v1.3.0 is a backwards compatible release with v1.2.x. To upgrade your existing 1.2.x project, simply bump your phoenix dependency in mix.exs:

@mjason
mjason / Dockerfile
Last active February 25, 2024 21:51
build phoenix in docker
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y git wget curl build-essential
RUN wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && dpkg -i erlang-solutions_1.0_all.deb
RUN apt-get update
RUN apt-get install erlang -y
RUN apt-get install -y elixir
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
@brienw
brienw / can0_setup.md
Last active November 29, 2017 09:17
Quick notes on the Nerves setup steps to enable an mcp2515 can controller on an rpi3

can0 setup

(for mcp2515 controller like the PiCAN2)

  1. fork (or clone) nerves_system_rpi3 locally into the parent directory of your project

  2. edit mix.exs and change the nerves_system_rpi3 lines to point to your local one:

     def system("rpi3"), do: [{:nerves_system_rpi3, path: "../nerves_system_rpi3", runtime: false}]
    
  3. mix deps.get

  4. mkdir config/rpi3 to set up a place to store some customized rpi configs