You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2013-05-02-elixir-on-xen.markdown
+20-20
Original file line number
Diff line number
Diff line change
@@ -24,25 +24,25 @@ Producing an Elixir image using the free Erlang on Xen Build Service requires ju
24
24
25
25
1. Add a dependency on `lingex` to your `mix.exs` file:
26
26
27
-
{% highlight elixir %}
28
-
def deps do
29
-
[ { :lingex, github: "maximk/lingex" } ]
30
-
end
31
-
{% endhighlight %}
27
+
{% highlight elixir %}
28
+
def deps do
29
+
[ { :lingex, github: "maximk/lingex" } ]
30
+
end
31
+
{% endhighlight %}
32
32
33
33
2. Run `mix deps.get` to update your dependencies. This adds a few custom tasks
34
34
to the mix tool (`lingex.build`, `lingex.image`, and `lingex.build_image`)
35
35
36
36
3. Set `lingex` options. Add the following lines to your `mix.exs` file:
37
37
38
-
{% highlight elixir %}
39
-
def project do
40
-
[ lingex_opts: [
41
-
build_host: "build.erlangonxen.org:8080",
42
-
username: "test",
43
-
password: "test" ] ]
44
-
end
45
-
{% endhighlight %}
38
+
{% highlight elixir %}
39
+
def project do
40
+
[ lingex_opts: [
41
+
build_host: "build.erlangonxen.org:8080",
42
+
username: "test",
43
+
password: "test" ] ]
44
+
end
45
+
{% endhighlight %}
46
46
47
47
4. Optionally, you may register with the build service [here](http://build.erlangonxen.org/register) and update the credentials accordingly. For the complete list of recognized options see the build service documentation.
48
48
@@ -54,19 +54,19 @@ And this is all. Erlang on Xen is going to boot the Erlang VM and the standard E
54
54
55
55
1. In the Erlang shell, first start IEx:
56
56
57
-
{% highlight elixir %}
58
-
1> application:start(iex).
59
-
ok
60
-
{% endhighlight %}
57
+
{% highlight elixir %}
58
+
1> application:start(iex).
59
+
ok
60
+
{% endhighlight %}
61
61
62
62
63
63
2. Then hit `Ctrl+G`. This will open up the user switch command interface from the Erlang shell.
64
64
65
65
3. In the user switch interface, type:
66
66
67
-
User switch command
68
-
--> s 'Elixir-IEx'
69
-
--> c
67
+
User switch command
68
+
--> s 'Elixir-IEx'
69
+
--> c
70
70
71
71
This will bring you to Interactive Elixir and you can execute Elixir expressions as usual!
0 commit comments