Skip to content

Soulou/sample-elixir-plug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Elixir Plug application

Running Locally

First, you need to have a working Elixir environment:

https://elixir-lang.org/install.html

You must specify the listening port using the PORT environment variable

Install dependencies

mix deps.get

Compile project

mix compile

Execute

PORT=4000 mix run --no-halt

Deploying on Scalingo

Create an application on https://scalingo.com, then:

git remote add scalingo [email protected]:<name_of_your_app>.git

Set the BUILDPACK_URL environement variable to https://github.com/HashNuke/heroku-buildpack-elixir.git.

You can do it using the web dashboard, select your application, go to the Environment tab and add :

BUILDPACK_URL=https://github.com/HashNuke/heroku-buildpack-elixir.git

If you want to do it using the scalingo cli interface juste type :

scalingo -a <name_of_your_app> env-set BUILDPACK_URL=https://github.com/HashNuke/heroku-buildpack-elixir.git

Next you'll need to push it to scalingo :

git push scalingo master

And that's it!

The application is running at this url: https://sample-elixir-plug.scalingo.io

Deploy in one click

Deploy to Scalingo

Links

https://elixir-lang.org/ https://github.com/elixir-lang/plug

About

Sample elxir plug app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published