Submit Search
Upload
Deploying Elixir/Phoenix with Distillery - Yaroslav Martsynuyk
•
0 likes
•
140 views
Elixir Club
Follow
Elixir Club 8 Peremoga Space, Kyiv 21.10.2017
Read less
Read more
Technology
Report
Share
Report
Share
1 of 10
Download now
Download to read offline
Recommended
RuSiem events collection and forwarding
RuSiem events collection and forwarding
Olesya Shelestova
Ftp server
Ftp server
MdNadimHossain9
System Updates with Ansible - Ansible Brno #1 - Vincent van Scherpenseel
System Updates with Ansible - Ansible Brno #1 - Vincent van Scherpenseel
ansiblebrno
Oracle virtual server-2-t0-3-upgrade
Oracle virtual server-2-t0-3-upgrade
Ravi Kumar Lanke
How to Install and Configure Jenkins on Centos 7
How to Install and Configure Jenkins on Centos 7
AniketGoyal14
L5 swagger
L5 swagger
saber tabatabaee
Guidlines sitecore9 installation
Guidlines sitecore9 installation
PRADEEP GUPTA
Two-Step Deployment with Rails
Two-Step Deployment with Rails
dugsmith
Recommended
RuSiem events collection and forwarding
RuSiem events collection and forwarding
Olesya Shelestova
Ftp server
Ftp server
MdNadimHossain9
System Updates with Ansible - Ansible Brno #1 - Vincent van Scherpenseel
System Updates with Ansible - Ansible Brno #1 - Vincent van Scherpenseel
ansiblebrno
Oracle virtual server-2-t0-3-upgrade
Oracle virtual server-2-t0-3-upgrade
Ravi Kumar Lanke
How to Install and Configure Jenkins on Centos 7
How to Install and Configure Jenkins on Centos 7
AniketGoyal14
L5 swagger
L5 swagger
saber tabatabaee
Guidlines sitecore9 installation
Guidlines sitecore9 installation
PRADEEP GUPTA
Two-Step Deployment with Rails
Two-Step Deployment with Rails
dugsmith
Install notes
Install notes
shubham866
Identity service keystone ppt
Identity service keystone ppt
university of Gujrat, pakistan
Deploy RvSIEM (eng)
Deploy RvSIEM (eng)
Olesya Shelestova
Oracle vm-installation
Oracle vm-installation
Ravi Kumar Lanke
Submitting and Reviewing changes lab guide
Submitting and Reviewing changes lab guide
openstackcisco
CCI2019 - I've got the Power! I've got the Shell!
CCI2019 - I've got the Power! I've got the Shell!
walk2talk srl
Devnet 1005 Getting Started with OpenStack
Devnet 1005 Getting Started with OpenStack
Cisco DevNet
How to contribute Apache CloudStack
How to contribute Apache CloudStack
Go Chiba
#dddsw - Modernizing .NET Apps with Docker
#dddsw - Modernizing .NET Apps with Docker
Elton Stoneman
CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter
CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter
Weerayut Hongsa
Tunneling configuration
Tunneling configuration
Naranont Atima
Managing an OSGi Framework with Apache Felix Web Console
Managing an OSGi Framework with Apache Felix Web Console
Felix Meschberger
Keep Your Servers in GitHub
Keep Your Servers in GitHub
Yegor Bugayenko
SoftLayer-demoLabV3
SoftLayer-demoLabV3
Christopher Gallo
Openstack bug list
Openstack bug list
openstackcisco
Bugzilla Installation Process
Bugzilla Installation Process
Vino Harikrishnan
Upgrade OBIEE to 11.1.1.7.1
Upgrade OBIEE to 11.1.1.7.1
Osama Mustafa
Build Rails applications using Hudson
Build Rails applications using Hudson
Yassire Elhani
Its3 Drupal
Its3 Drupal
guest954945a
3. Copy1 in Laravel
3. Copy1 in Laravel
Razvan Raducanu, PhD
Releasing Elixir/Phoenix Applications
Releasing Elixir/Phoenix Applications
Wise Engineering
Yaroslav Martsynyuk - Deploying Elixir/Phoenix with Distillery
Yaroslav Martsynyuk - Deploying Elixir/Phoenix with Distillery
Elixir Club
More Related Content
What's hot
Install notes
Install notes
shubham866
Identity service keystone ppt
Identity service keystone ppt
university of Gujrat, pakistan
Deploy RvSIEM (eng)
Deploy RvSIEM (eng)
Olesya Shelestova
Oracle vm-installation
Oracle vm-installation
Ravi Kumar Lanke
Submitting and Reviewing changes lab guide
Submitting and Reviewing changes lab guide
openstackcisco
CCI2019 - I've got the Power! I've got the Shell!
CCI2019 - I've got the Power! I've got the Shell!
walk2talk srl
Devnet 1005 Getting Started with OpenStack
Devnet 1005 Getting Started with OpenStack
Cisco DevNet
How to contribute Apache CloudStack
How to contribute Apache CloudStack
Go Chiba
#dddsw - Modernizing .NET Apps with Docker
#dddsw - Modernizing .NET Apps with Docker
Elton Stoneman
CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter
CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter
Weerayut Hongsa
Tunneling configuration
Tunneling configuration
Naranont Atima
Managing an OSGi Framework with Apache Felix Web Console
Managing an OSGi Framework with Apache Felix Web Console
Felix Meschberger
Keep Your Servers in GitHub
Keep Your Servers in GitHub
Yegor Bugayenko
SoftLayer-demoLabV3
SoftLayer-demoLabV3
Christopher Gallo
Openstack bug list
Openstack bug list
openstackcisco
Bugzilla Installation Process
Bugzilla Installation Process
Vino Harikrishnan
Upgrade OBIEE to 11.1.1.7.1
Upgrade OBIEE to 11.1.1.7.1
Osama Mustafa
Build Rails applications using Hudson
Build Rails applications using Hudson
Yassire Elhani
Its3 Drupal
Its3 Drupal
guest954945a
3. Copy1 in Laravel
3. Copy1 in Laravel
Razvan Raducanu, PhD
What's hot
(20)
Install notes
Install notes
Identity service keystone ppt
Identity service keystone ppt
Deploy RvSIEM (eng)
Deploy RvSIEM (eng)
Oracle vm-installation
Oracle vm-installation
Submitting and Reviewing changes lab guide
Submitting and Reviewing changes lab guide
CCI2019 - I've got the Power! I've got the Shell!
CCI2019 - I've got the Power! I've got the Shell!
Devnet 1005 Getting Started with OpenStack
Devnet 1005 Getting Started with OpenStack
How to contribute Apache CloudStack
How to contribute Apache CloudStack
#dddsw - Modernizing .NET Apps with Docker
#dddsw - Modernizing .NET Apps with Docker
CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter
CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter
Tunneling configuration
Tunneling configuration
Managing an OSGi Framework with Apache Felix Web Console
Managing an OSGi Framework with Apache Felix Web Console
Keep Your Servers in GitHub
Keep Your Servers in GitHub
SoftLayer-demoLabV3
SoftLayer-demoLabV3
Openstack bug list
Openstack bug list
Bugzilla Installation Process
Bugzilla Installation Process
Upgrade OBIEE to 11.1.1.7.1
Upgrade OBIEE to 11.1.1.7.1
Build Rails applications using Hudson
Build Rails applications using Hudson
Its3 Drupal
Its3 Drupal
3. Copy1 in Laravel
3. Copy1 in Laravel
Similar to Deploying Elixir/Phoenix with Distillery - Yaroslav Martsynuyk
Releasing Elixir/Phoenix Applications
Releasing Elixir/Phoenix Applications
Wise Engineering
Yaroslav Martsynyuk - Deploying Elixir/Phoenix with Distillery
Yaroslav Martsynyuk - Deploying Elixir/Phoenix with Distillery
Elixir Club
Installation of CaudalFin E1/T1 (PRI) Boards on Asterisk & CentOS
Installation of CaudalFin E1/T1 (PRI) Boards on Asterisk & CentOS
CaudalFin Technologies
Preparation study of_docker - (MOSG)
Preparation study of_docker - (MOSG)
Soshi Nemoto
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Simon Boulet
Oracle api gateway installation as cluster and single node
Oracle api gateway installation as cluster and single node
Osama Mustafa
Deployment Tactics
Deployment Tactics
Ian Barber
Elixir Deployment Tools
Elixir Deployment Tools
Aaron Renner
Composer
Composer
Tom Corrigan
How to automate elixir phoenix deployment with distillery and edeliver on ubu...
How to automate elixir phoenix deployment with distillery and edeliver on ubu...
VasiliyPodnebesniy
テストプラン
テストプラン
stucon
Ruby and Rails Packaging to Production
Ruby and Rails Packaging to Production
Fabio Kung
Installation of DAHDI, libpri and Asterisk
Installation of DAHDI, libpri and Asterisk
CaudalFin Technologies
PHP on Heroku: Deploying and Scaling Apps in the Cloud
PHP on Heroku: Deploying and Scaling Apps in the Cloud
Salesforce Developers
Composer for busy developers - DPC13
Composer for busy developers - DPC13
Rafael Dohms
Deployment of WebObjects applications on FreeBSD
Deployment of WebObjects applications on FreeBSD
WO Community
Glassfish Web Stack Launch Jyri Virkki V2
Glassfish Web Stack Launch Jyri Virkki V2
Eduardo Pelegri-Llopart
Influxdb
Influxdb
Nguyen Ngoc Lieu
Oracle11g On Fedora14
Oracle11g On Fedora14
kmsa
Oracle11g on fedora14
Oracle11g on fedora14
Khalid Matar Albuflasah
Similar to Deploying Elixir/Phoenix with Distillery - Yaroslav Martsynuyk
(20)
Releasing Elixir/Phoenix Applications
Releasing Elixir/Phoenix Applications
Yaroslav Martsynyuk - Deploying Elixir/Phoenix with Distillery
Yaroslav Martsynyuk - Deploying Elixir/Phoenix with Distillery
Installation of CaudalFin E1/T1 (PRI) Boards on Asterisk & CentOS
Installation of CaudalFin E1/T1 (PRI) Boards on Asterisk & CentOS
Preparation study of_docker - (MOSG)
Preparation study of_docker - (MOSG)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Oracle api gateway installation as cluster and single node
Oracle api gateway installation as cluster and single node
Deployment Tactics
Deployment Tactics
Elixir Deployment Tools
Elixir Deployment Tools
Composer
Composer
How to automate elixir phoenix deployment with distillery and edeliver on ubu...
How to automate elixir phoenix deployment with distillery and edeliver on ubu...
テストプラン
テストプラン
Ruby and Rails Packaging to Production
Ruby and Rails Packaging to Production
Installation of DAHDI, libpri and Asterisk
Installation of DAHDI, libpri and Asterisk
PHP on Heroku: Deploying and Scaling Apps in the Cloud
PHP on Heroku: Deploying and Scaling Apps in the Cloud
Composer for busy developers - DPC13
Composer for busy developers - DPC13
Deployment of WebObjects applications on FreeBSD
Deployment of WebObjects applications on FreeBSD
Glassfish Web Stack Launch Jyri Virkki V2
Glassfish Web Stack Launch Jyri Virkki V2
Influxdb
Influxdb
Oracle11g On Fedora14
Oracle11g On Fedora14
Oracle11g on fedora14
Oracle11g on fedora14
More from Elixir Club
Kubernetes + Docker + Elixir - Alexei Sholik, Andrew Dryga | Elixir Club Ukraine
Kubernetes + Docker + Elixir - Alexei Sholik, Andrew Dryga | Elixir Club Ukraine
Elixir Club
Integrating 3rd parties with Ecto - Eduardo Aguilera | Elixir Club Ukraine
Integrating 3rd parties with Ecto - Eduardo Aguilera | Elixir Club Ukraine
Elixir Club
— An async template - Oleksandr Khokhlov | Elixir Club Ukraine
— An async template - Oleksandr Khokhlov | Elixir Club Ukraine
Elixir Club
BEAM architecture handbook - Andrea Leopardi | Elixir Club Ukraine
BEAM architecture handbook - Andrea Leopardi | Elixir Club Ukraine
Elixir Club
You ain't gonna need write a GenServer - Ulisses Almeida | Elixir Club Ukraine
You ain't gonna need write a GenServer - Ulisses Almeida | Elixir Club Ukraine
Elixir Club
— Knock, knock — An async templates — Who’s there? - Alexander Khokhlov | ...
— Knock, knock — An async templates — Who’s there? - Alexander Khokhlov | ...
Elixir Club
Performance measurement methodology — Maksym Pugach | Elixir Evening Club 3
Performance measurement methodology — Maksym Pugach | Elixir Evening Club 3
Elixir Club
Erlang cluster. How is it? Production experience. — Valerii Vasylkov | Elixi...
Erlang cluster. How is it? Production experience. — Valerii Vasylkov | Elixi...
Elixir Club
Promo Phx4RailsDevs - Volodya Sveredyuk
Promo Phx4RailsDevs - Volodya Sveredyuk
Elixir Club
Web of today — Alexander Khokhlov
Web of today — Alexander Khokhlov
Elixir Club
ElixirConf Eu 2018, what was it like? – Eugene Pirogov
ElixirConf Eu 2018, what was it like? – Eugene Pirogov
Elixir Club
Implementing GraphQL API in Elixir – Victor Deryagin
Implementing GraphQL API in Elixir – Victor Deryagin
Elixir Club
WebPerformance: Why and How? – Stefan Wintermeyer
WebPerformance: Why and How? – Stefan Wintermeyer
Elixir Club
GenServer in Action – Yurii Bodarev
GenServer in Action – Yurii Bodarev
Elixir Club
Russian Doll Paradox: Elixir Web without Phoenix - Alex Rozumii
Russian Doll Paradox: Elixir Web without Phoenix - Alex Rozumii
Elixir Club
Practical Fault Tolerance in Elixir - Alexei Sholik
Practical Fault Tolerance in Elixir - Alexei Sholik
Elixir Club
Phoenix and beyond: Things we do with Elixir - Alexander Khokhlov
Phoenix and beyond: Things we do with Elixir - Alexander Khokhlov
Elixir Club
Monads are just monoids in the category of endofunctors - Ike Kurghinyan
Monads are just monoids in the category of endofunctors - Ike Kurghinyan
Elixir Club
Craft effective API with GraphQL and Absinthe - Ihor Katkov
Craft effective API with GraphQL and Absinthe - Ihor Katkov
Elixir Club
Elixir in a service of government - Alex Troush
Elixir in a service of government - Alex Troush
Elixir Club
More from Elixir Club
(20)
Kubernetes + Docker + Elixir - Alexei Sholik, Andrew Dryga | Elixir Club Ukraine
Kubernetes + Docker + Elixir - Alexei Sholik, Andrew Dryga | Elixir Club Ukraine
Integrating 3rd parties with Ecto - Eduardo Aguilera | Elixir Club Ukraine
Integrating 3rd parties with Ecto - Eduardo Aguilera | Elixir Club Ukraine
— An async template - Oleksandr Khokhlov | Elixir Club Ukraine
— An async template - Oleksandr Khokhlov | Elixir Club Ukraine
BEAM architecture handbook - Andrea Leopardi | Elixir Club Ukraine
BEAM architecture handbook - Andrea Leopardi | Elixir Club Ukraine
You ain't gonna need write a GenServer - Ulisses Almeida | Elixir Club Ukraine
You ain't gonna need write a GenServer - Ulisses Almeida | Elixir Club Ukraine
— Knock, knock — An async templates — Who’s there? - Alexander Khokhlov | ...
— Knock, knock — An async templates — Who’s there? - Alexander Khokhlov | ...
Performance measurement methodology — Maksym Pugach | Elixir Evening Club 3
Performance measurement methodology — Maksym Pugach | Elixir Evening Club 3
Erlang cluster. How is it? Production experience. — Valerii Vasylkov | Elixi...
Erlang cluster. How is it? Production experience. — Valerii Vasylkov | Elixi...
Promo Phx4RailsDevs - Volodya Sveredyuk
Promo Phx4RailsDevs - Volodya Sveredyuk
Web of today — Alexander Khokhlov
Web of today — Alexander Khokhlov
ElixirConf Eu 2018, what was it like? – Eugene Pirogov
ElixirConf Eu 2018, what was it like? – Eugene Pirogov
Implementing GraphQL API in Elixir – Victor Deryagin
Implementing GraphQL API in Elixir – Victor Deryagin
WebPerformance: Why and How? – Stefan Wintermeyer
WebPerformance: Why and How? – Stefan Wintermeyer
GenServer in Action – Yurii Bodarev
GenServer in Action – Yurii Bodarev
Russian Doll Paradox: Elixir Web without Phoenix - Alex Rozumii
Russian Doll Paradox: Elixir Web without Phoenix - Alex Rozumii
Practical Fault Tolerance in Elixir - Alexei Sholik
Practical Fault Tolerance in Elixir - Alexei Sholik
Phoenix and beyond: Things we do with Elixir - Alexander Khokhlov
Phoenix and beyond: Things we do with Elixir - Alexander Khokhlov
Monads are just monoids in the category of endofunctors - Ike Kurghinyan
Monads are just monoids in the category of endofunctors - Ike Kurghinyan
Craft effective API with GraphQL and Absinthe - Ihor Katkov
Craft effective API with GraphQL and Absinthe - Ihor Katkov
Elixir in a service of government - Alex Troush
Elixir in a service of government - Alex Troush
Recently uploaded
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
HampshireHUG
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
Allon Mureinik
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
Enterprise Knowledge
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
The Digital Insurer
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
V3cube
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
RTylerCroy
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Maria Levchenko
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Rafal Los
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Delhi Call girls
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Enterprise Knowledge
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Sinan KOZAK
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Gabriella Davis
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Neo4j
Recently uploaded
(20)
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Deploying Elixir/Phoenix with Distillery - Yaroslav Martsynuyk
1.
Deploying Elixir/Phoenix w/ Distillery Elixir
Club 8 21 October | Kyiv Yaroslav Martsynyuk
2.
What is Distillery
and What it Does [not]? Does: - Elixir release manager - Builds release package - Builds upgrade/downgrade package Doesn`t: - Deploy package to server - Start/upgrade/downgrade app
3.
1 defp deps
do 2 [ 3 {:phoenix, "~> 1.3.0"}, 4 {:phoenix_pubsub, "~> 1.0"}, 5 {:phoenix_ecto, "~> 3.2"}, 6 {:phoenix_html, "~> 2.10"}, 7 {:phoenix_live_reload, "~> 1.0", only: :dev}, 8 {:gettext, "~> 0.11"}, 9 {:cowboy, "~> 1.0"}, 10 {:distillery, "~> 1.5.2"} 11 ] 12 end Add Distillery As Dependency
4.
$> mix release.init 1
use Mix.Releases.Config, 2 default_release: :web, 3 default_environment: Mix.env() 4 5 environment :prod do 6 set include_erts: true 7 set cookie: “ M*~{1amT9B(cG9qoi3I*a>BUS{AkC;Lb<hh~BG[g ” 8 end 9 10 release :web do 11 set version: current_version(:web) 12 end Init Release
5.
$> MIX_ENV=prod mix
deps.get --only prod $> MIX_ENV=prod mix release.init $> MIX_ENV=prod mix release [--upgrade] --env=prod VERSION - 1 => VERSION => VERSION + 1 Create Release/Upgrade
6.
1 #! /usr/bin/env 2 3
V=$(grep 'version' mix.exs | cut -d'"' -f2) 4 5 if["$(ssh user@host /tmp/bin/demo ping)" = "pong" ]; then 6 bash ./upgrade.sh 7 else 8 cd ~/demo 9 MIX_ENV=prod mix deps.get --only prod 10 MIX_ENV=prod mix release.init 11 MIX_ENV=prod mix release --env=prod 12 scp ./releases/${V}/demo.tar.gz user@host:/tmp 13 ssh user@host tar -xf demo.tar.gz -C /tmp 14 ssh user@host /tmp/bin/demo start 15 fi Install Script
7.
1 #! /usr/bin/env 2 3
V=$(grep 'version' mix.exs | cut -d'"' -f2) 4 5 cd ~/demo 6 MIX_ENV=prod mix deps.get --only prod 7 MIX_ENV=prod compile 8 MIX_ENV=prod mix release --env=prod --upgrade 9 scp ./releases/${V}/demo.tar.gz user@host:/tmp/releases/${V} 10 ssh user@host /tmp/bin/demo upgrade ${VERSION} Upgrade Script
8.
FROM elixir:1.5.2 ENV APP_NAME
/web EXPOSE 4000 ... RUN mix deps.get RUN cd $APP_NAME/assets && npm install && node $APP_NAME/assets/node_modules/brunch/bin/brunch build RUN MIX_ENV=prod mix release.init RUN MIX_ENV=prod mix release CMD MIX_ENV=prod _build/prod/rel/web/bin/web foreground Docker/Kubernetes
9.
104.131.48.219 CI Node 104.131.65.78
Production Node http://104.131.65.78:4000 Demo Time
10.
?
Download now