This repository is aimed at getting a working environment installed and configured to start developing an application using the Phoenix Framework.
It will attempt to install the stack as described in the Installation and the Up And Running guides.
You will need the following applications, installed on your development machine.
Install Git from here
$ git --version
$ git version 1.9.5 (Apple Git-50.3)
Install VirtualBox from here
$ vboxmanage --version
$ 4.3.24r98716
Install Vagrant from here
$ vagrant --version
$ Vagrant 1.6.5
Download the release as tar.gz or zip format
$ curl -OL https://github.com/monkeyphp/phoenix-stack/archive/0.0.1.tar.gz
$ tar -xzf 0.0.1.tar.gz
$ mv phoenix-stack-0.0.1 phoenix-stack
$ cd phoenix-stack
Or clone out this repository
$ git clone [email protected]:monkeyphp/phoenix-stack.git
$ cd phoenix-stack
$ rm -Rf .git
The following commands should start the Vagrant VM and install the development stack.
$ cd phoenix-stack/tools/vagrant
$ vagrant up
Replace
myapp
with your application name
$ cd phoenix-stack/tools/vagrant
$ vagrant ssh
$ cd /mnt/project/phoenix-stack
$ mix phoenix.new myapp
$ cd phoenix-stack/tools/vagrant
$ vagrant ssh
$ cd /mnt/project/phoenix-stack/myapp
$ mix ecto.create
If you get the error
$ ** (Mix) The task "ecto.create" could not be found
check that you have changed to your application root directory ie
$ cd /mnt/project/phoenix-stack/myapp`
$ cd phoenix-stack/tools/vagrant
$ vagrant ssh
$ cd /mnt/project/phoenix-stack/myapp
$ mix phoenix.server
You should now be able to access your site in your browser at: http://192.168.99.210:4000/