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
- Host: GitHub
- URL: https://github.com/crowdhailer/elixir-vagrant-sandbox
- Owner: CrowdHailer
- Created: 2017-10-29T09:04:24.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-29T09:04:41.000Z (about 8 years ago)
- Last Synced: 2025-08-19T19:29:01.337Z (5 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)