An open API service indexing awesome lists of open source software.

https://github.com/crowdhailer/elixir-vagrant-sandbox

A development environment for building and running elixir applications
https://github.com/crowdhailer/elixir-vagrant-sandbox

Last synced: 3 months ago
JSON representation

A development environment for building and running elixir applications

Awesome Lists containing this project

README

          

# Virtual Machine Sandbox

This setup requires [Vagrant](https://www.vagrantup.com/) to be setup.

There are two environments setup:

- development, has Elixir/erlang installed.
- production, clean ubuntu box, three instances started

## Starting Vagrant

Start all vm's

```
vagrant up
```

Access the development environment

```
vagrant ssh development
cd /vagrant
```

## Building a release

```
# vagrant@development

cd /
mix deps.get
MIX_ENV=prod mix release

scp _build/prod/rel//releases/0.1.0/.tar.gz vagrant@:.
```

*NOTE: Don't forget the final `.` which is the path on the target machine to sent the file too.*
*NOTE: Will ask for target machine password, default password is `vagrant`.*
*NOTE: ip's are dynamic, to find appropriate use `eth1` value returned by `ifconfig`.*

## Starting a release

```
vagrant@production1
tar -xf .tar.gz
./bin/ start
```

visit [](http://172.28.128.4:8080)