To start your new Phoenix application:
- Install dependencies with
mix deps.get
- Start Phoenix endpoint with
mix phoenix.server
Now you can visit localhost:4000
from your browser.
Phoenix Application with Dockerfile to run on a Raspberry Pi 2 on Resin.IO
Hi,
I've tried to fiddle your example and a section from Phoenix' deployment guide together to something like this:
FROM ricarus/rpi-raspbian-elixir
ADD . /my_app
ENV PATH /elixir/bin:$PATH
ENV LC_ALL en_US.UTF-8
ENV MIX_ENV prod
ENV PORT 80
EXPOSE 80
WORKDIR /my_app
RUN mix deps.get --only prod
RUN mix compile
RUN brunch build --production
RUN MIX_ENV=prod mix phoenix.digest
CMD mix phoenix.server
Now building the image stopped because brunch isn't available. Do you plan to include node.js and maybe even brunch in your Docker image or would I have to come up with my own one?
Thanks so far.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.