Commit graph

23 commits

Author SHA1 Message Date
Evan Czaplicki
0fe6ec0bd7 Add a way to specify the runtime location 2014-03-23 17:57:36 -07:00
Evan Czaplicki
b6d9f75756 Update version number and description 2014-03-21 17:06:17 -07:00
Evan Czaplicki
096f7eab65 Merge branch 'dev' 2014-03-21 16:41:43 -07:00
Evan Czaplicki
85d493ce59 Upgrade to use Snap instead of Happstack 2014-03-21 16:41:19 -07:00
Max New
06aba83c12 It's 2014. 2014-03-21 18:08:22 -05:00
Evan Czaplicki
92af8a4f0d Bump year for elm-server 2014-03-21 15:28:57 -07:00
Evan Czaplicki
013f9d701e Bump version number of elm-server 2013-12-30 15:50:25 -08:00
Timothy Vladimír Hobbs
145d4b96c5 Update elm-server to work with new module structure 2013-12-30 17:31:43 -06:00
Evan Czaplicki
d57b91c537 Stop using a custom cache directory, and stop deleting the cache immediately. Also clean up related code. 2013-10-30 16:31:29 +01:00
Evan Czaplicki
fb760ee63e Bump version number of elm-server 2013-10-22 06:54:23 +02:00
Justin Leitgeb
10f13d107d Modify code to follow hlint suggestions 2013-10-11 20:50:44 -04:00
Justin Leitgeb
952c02fabf Improve error messages when elm input file or binary can't be found
There are a few problems currently with the elm server:

  1. When the elm binary is not found, a nondescript error is displayed
  2. When a file has a suffix .elm but the file is not found, the same error
     as in (1) is displayed
  3. When a non-existing file ending in .elm is requested, the error code is
     incorrect - the elm-server returns a 400 instead of a 404

The following is the error message that shows up in cases (1) and (2) above:

    Server error: elm-server-cache: getDirectoryContents: does not exist (No such file or directory)

This commit fixes the generic runtime errors (source of (1) and (2) above) by
guarding against trying to delete a non-existing directory. It also fixes the
HTTP code for non-existing .elm files by returning the general Happstack 404
page that is returned for other not-found requests.
2013-10-11 20:44:29 -04:00
Justin Leitgeb
05dbca5120 Fit code within 80 characters 2013-10-11 09:04:11 -05:00
Evan Czaplicki
ba7bd386ee It's 2013 everyone! 2013-09-13 12:09:10 -07:00
Evan Czaplicki
c87fb860bb Give minum require ment for elm-server 2013-08-12 23:16:12 -07:00
Evan Czaplicki
3d570aa011 Show error messages in browser with elm-server 2013-08-10 23:01:37 -07:00
Evan Czaplicki
0f400da42f Update elm-server to work with 0.9, compiles multiple files 2013-08-10 00:51:29 -07:00
Laszlo Pandy
c24f04b243 [elm-server] add --port=... command line option. 2013-06-04 11:41:00 +02:00
evancz
fb07818e87 Fix file handle problem.
When there was a parse error, Windows would keep the file handle open because the file was only partially read.
2013-05-30 08:02:44 -07:00
evancz
de4e9ac19f Fix mistake in Graphics/Input.js library. 2013-05-22 03:05:44 +02:00
evancz
af75972665 Merge branch 'dev'
Conflicts:
	Elm.cabal
	Examples/elm-js/GameSkeleton/GameSkeleton.elm
	Examples/elm-js/Pong/Pong.elm
	core-js/Signal/Input.js
2013-05-22 00:26:23 +02:00
evancz
be72e868ee Fix the server 2013-04-28 22:17:51 -07:00
evancz
9a0fad5b58 Rename elm-server/ to server/ 2013-03-09 19:16:43 -08:00