on master help sign in
avoid elm-server in README.md for now. Will improve directions soon!
commitf190afa8b6e204b417b1a471ed984ec8e6b7e9cf authorevancz <info@elm-lang.org> dateSat 29 Sep 2012, 22:30 (14 years ago) parent839d3e2
1 file changed+3−3
README.md+3−3
README.md+3−3
@@ -25,14 +25,14 @@ Assuming everything goes correctly (potential problems are discussed later), thi
2525
2626To use these executables you need to add a new directory to your PATH. For me, the executables were placed in `/home/evan/.cabal/bin` which I appended to the end of my PATH variable in my .bashrc file. Cabal should tell you where your executables are located upon successful installation, so you can make a similar addition (see this tutorial if you are new to changing your PATH in [Unix/Linux](http://www.cyberciti.biz/faq/unix-linux-adding-path/)).
2727
28−That is almost everything. Now, we will create a simple Elm project. The following commands will set-up a very basic project and start the Elm server.
28+That is almost everything. Now, we will create a simple Elm project. The following commands will set-up a very basic project and compile it to HTML.
2929
3030 mkdir helloElm
3131 cd helloElm
3232 echo main = lift asText Mouse.position > main.elm
33− elm-server
33+ elm main.elm
3434
35−The first two commands create a new directory and navigate into it. The `echo` command places a simple program into `main.elm` (do this manually if you do not have `echo`). The final command starts the Elm server at [localhost](http://localhost:8000/), allowing you to navigate to `main.elm` and see your first program in action.
35+The first two commands create a new directory and navigate into it. The `echo` command places a simple program into `main.elm` (do this manually if you do not have `echo`). The final command compiles the Elm code to HTML, which you can open with your browser.
3636
3737An important note: When you install the `elm` compiler, it automatically downloads Elm's JavaScript runtime system to `~/.cabal/share/Elm-x.y.z/`. The runtime system will follow the name scheme `elm-runtime-x.y.z.js` where `x.y.z` matches the version number of the compiler. If you want to serve this file from a different location, *copy* it from its home and always be sure that code compiled with version `x.y.z` of the compiler is served with version `x.y.z` of the runtime system.
3838