#Phoenix 1.1.x to 1.2.0 Upgrade Instructions
To generate new projects as 1.2.0, install the new mix archive:
mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez
| { | |
| "require": { | |
| "mfacenet/hello-world": "v1.*" | |
| } | |
| } |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "precise64" | |
| config.vm.network :private_network, ip: "192.168.33.2" | |
| config.vm.synced_folder ".", "/Projects", id: "vagrant-root" | |
| config.vm.provider(:vmware_fusion) do |v| | |
| v.vmx["memsize"] = "2048" |
| <article> | |
| <header> | |
| <h3><%= comment.author %></h3> | |
| </header> | |
| <%= comment.body %> | |
| </article> |
| #!/usr/bin/env bash | |
| uninstall() { | |
| list=`gem list --no-versions` | |
| for gem in $list; do | |
| gem uninstall $gem -aIx | |
| done | |
| gem list | |
| gem install bundler | |
| } |
| #!/usr/bin/env bash | |
| version="1.5.10" | |
| pcre_version="8.34" | |
| set -e | |
| rm -rf nginx-$version* | |
| # download nginx |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.
You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.
| /* | |
| * | |
| * First, set up a backend to answer the request if there's not a cache hit. | |
| * | |
| */ | |
| backend default { | |
| # Set a host. | |
| .host = "192.168.1.100"; |
| require "money" | |
| class Decorator < BasicObject | |
| undef_method :== | |
| def initialize(component) | |
| @component = component | |
| end | |
| def method_missing(name, *args, &block) |