Commit Graph

63 Commits

Author SHA1 Message Date
Michael Snoyman
3b8ca1d3d1
Bad CPP 2017-08-04 08:12:55 +03:00
Michael Snoyman
a4eee30930
Cabal 2.0 support 2017-07-31 09:55:19 +03:00
Sibi Prabakaran
67eb728703
Make updateAppPort as a single STM transaction 2017-04-27 17:08:12 +05:30
Sibi Prabakaran
37c9d25990
Add Debug flag 2017-04-26 20:56:58 +05:30
Sibi Prabakaran
706de89156
Change logic to use TVar 2017-04-26 19:37:59 +05:30
Sibi Prabakaran
62d7a19149
Fix warnings 2017-04-24 21:51:13 +05:30
Sibi Prabakaran
878534a272
Fix race condition in yesod-bin
Stack build process emittles line even after successful build process
which leads to the overwriting of the appPortVar with -1. This leads
it to a compile mode again. Pressing Return Key and rebuilding it
again makes it go, but that's just a workaround I have to do every now
and then to solve the actual issue.

I'm using a `MVar` based locking solution for fixing the race
condition introduced.
2017-04-24 20:33:52 +05:30
Michael Snoyman
039046e355
Another Nix workaround (fixes #1359) 2017-03-15 06:42:12 +02:00
Michael Snoyman
4f30dfca1e
Use --no-nix-pure #1357 2017-03-05 19:12:14 +02:00
Michael Snoyman
705b52f7eb Add --host option to yesod devel (fixes #975) 2016-12-21 14:27:52 +02:00
Michael Snoyman
58407c292e Fix a build failure 2016-11-29 13:51:02 +02:00
Michael Snoyman
3883063ec2 Devel server indicates when recompilation is occurring
Pinging @amitaibu
2016-11-28 09:58:48 +02:00
Michael Snoyman
b1f1e4e222 Revert to runghc 2016-11-26 17:57:32 +02:00
Michael Snoyman
f3fc735a25 README.md, and some minor code cleanups 2016-11-24 07:51:54 +02:00
Michael Snoyman
ab4d6540ca Workaround for compatibility with older fsnotify 2016-11-23 15:59:58 +02:00
Michael Snoyman
6048a2c9bf Got my logic backwards :( 2016-11-23 15:34:14 +02:00
Michael Snoyman
db3beff4f3 Some CPP for Cabal API changes 2016-11-23 15:19:27 +02:00
Michael Snoyman
83d3a12a23 Rewrite yesod devel based on Stack #1304
Please see ChangeLog for explanation.
2016-11-23 13:59:56 +02:00
Michael Snoyman
1fb697ff0d Add a workaround for yesodweb/wai#478 2015-12-06 13:29:17 +02:00
Michael Snoyman
32dbad23d3 s/127.0.0.1/localhost yesodweb/yesod-scaffold#114 2015-12-06 12:55:16 +02:00
Michael Snoyman
af00b76a18 Set X-Forwarded-Proto correctly yesodweb/yesod-scaffold#114 2015-12-06 12:54:36 +02:00
Bryan Richter
9fbfb62e68
Warning cleanup
Note that configCompilerEx was added in Cabal-1.18.0, not 1.22.
2015-07-22 13:10:50 -07:00
Michael Snoyman
46fbb1a615 Have to type quit to quit 2015-07-20 01:29:46 +03:00
Michael Snoyman
a7cccf2a7c yesod devel support for stack 2015-06-29 08:14:04 +03:00
Michael Snoyman
2d8507cbee Be slightly more verbose for #992 2015-05-17 10:31:40 +03:00
Njagi Mwaniki
58a07b0ea3
Added conditional compilation so that yesod-bin/Devel.hs can pass travis-ci tests.
Signed-off-by: Njagi Mwaniki <mwanikibusiness@gmail.com>
2015-04-15 18:50:05 +03:00
Njagi Mwaniki
c3a05d1f7b
Updated yesod-bin/Devel.hs
Replaced deprecated function `configCompiler` with `configCompilerEx`
  Removed unused argument "_opts" from function `lockFile`
  Added newline before guards which I think makes it more beginner friendly.

Signed-off-by: Njagi Mwaniki <mwanikibusiness@gmail.com>
2015-04-15 17:14:45 +03:00
Arne Link
91829fc82a Add support for GHC 7.10.1 2015-04-03 16:34:08 +02:00
Michael Snoyman
c2e836bf3a Some user-facing TLS info (pinging @chrisdone @DanBurton) 2015-03-31 09:30:53 +03:00
Dan Burton
85f16d0e9f Used race_ for clarity 2015-03-30 13:10:02 -07:00
Dan Burton
6562e6067c Second reverseproxy now handles incoming https requests 2015-03-30 12:57:07 -07:00
Dan Burton
2e573f440a Add a second reverse proxy for tls 2015-03-26 13:41:50 -07:00
Paul Rouse
5281d7aa3e Remain compatible with pre-0.4.7 http-client 2015-03-01 11:20:19 +00:00
Paul Rouse
761e7dd374 Disregard proxy environment variables in yesod devel 2015-02-28 21:38:11 +00:00
Harold Lee
f8fb6d3dc3 Improve error message when "yesod devel" complains about the GHC version.
I hit this problem and the fix was to reinstall yesod-bin (because I'd
upgraded my version of ghc):

    cabal install --reinstall yesod-bin

See issue #476.
2015-02-22 13:35:13 -08:00
Michael Snoyman
fb42a6d4bb Allow devel.hs in subdirs 2014-11-19 21:11:49 +02:00
Michael Snoyman
c0f0c13352 Disable tests and benchmarks for yesod devel #864 2014-11-13 23:36:03 +02:00
Michael Snoyman
ccab062f2d Remove all conditional compilation for Yesod 1.4 release
Left in for GHC-bundled libraries (ghc, base, bytestring, binary)
2014-09-07 18:17:45 +03:00
Erik de Castro Lopo
c20cb20438 yesod-bin/Devel.hs : Relax requirements on location of Application.hs.
I often move Application.hs to MyApp/Application.hs (and change the
module name as needed) which would result in yesod-bin printing a
warning about a missing Application.hs.

The code should now accept any file named Application.hs (either in
the top level source directory or somewhere in the tree.
2014-08-14 18:16:01 +10:00
Paul Rouse
20dfec4d88 Revise previous fix (#799) to yesod devel timeout 2014-08-08 11:10:07 +01:00
Paul Rouse
1d3b60abef Mitigate yesod devel load (#767) by increasing a timeout 2014-08-06 20:27:24 +01:00
Anthony Burzillo
54a4417f54 Add color to "Build failure" warning 2014-07-06 23:25:17 -04:00
Michael Snoyman
3202eec80a Merge remote-tracking branch 'origin/master' into wai3 2014-05-27 12:46:33 +03:00
Michael Snoyman
e305587143 Don't warn about unlisted Setup module 2014-05-25 08:27:48 +03:00
Michael Snoyman
82de52e3d2 Various additional WAI 3.0 fixes 2014-05-22 21:04:28 +03:00
Michael Snoyman
11ac378920 fsnotify 0.1 2014-05-15 11:51:03 +03:00
Michael Snoyman
cb95446469 Call watchTree in background (faster startup when there are lots of files) 2014-05-14 08:09:21 +03:00
Michael Snoyman
cf20f15957 Use Map for updating environment variables.
This ensures that the newly inserted variables overwrite any existing
variables. For more information, see:

https://groups.google.com/d/msg/yesodweb/0AX2GbKqmIk/nKYTCVoCm4QJ
2014-05-13 18:31:21 +03:00
Michael Snoyman
99831b52a2 Respect accept header for JSON in devel server #719 2014-04-24 07:14:01 +03:00
Michael Snoyman
d764464152 conduit 1.1 2014-03-27 16:38:52 +02:00