Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 986 Bytes

README.md

File metadata and controls

55 lines (35 loc) · 986 Bytes

ElixirChina

built with nix

Promot Elixir in China, and guide more chinese developers to international community.

Online Version

Visit https://elixir-china.zekedou.live.

Development

To start your Phoenix server:

  • Run mix setup to install and setup dependencies
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Deployment

build Docker image

# build x86_64-linux image on x86_64-darwin host
$ nix build .#packages.x86_64-linux.docker-image-triggered-by-x86_64-darwin
$ ./result | docker load

# ...
# run `nix flake show` to show more packages

push Docker image

$ flyctl auth docker
$ docker push <image>

update fly.toml

[build]
  image = "<image>"

deploy it

$ flyctl deploy

License

MIT