Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WebServer reload mode #8

Open
humhei opened this issue Feb 23, 2019 · 9 comments
Open

Add WebServer reload mode #8

humhei opened this issue Feb 23, 2019 · 9 comments

Comments

@humhei
Copy link
Owner

humhei commented Feb 23, 2019

Releated codes
https://github.com/humhei/FCSWatch/blob/master3/src/FcsWatch/Types.fs#L105

[<RequireQualifiedAccess>]
type DevelopmentTarget =
    | Program
    | Plugin of Plugin
@humhei
Copy link
Owner Author

humhei commented Feb 23, 2019

My major purpose for this tool is Excel Dna plugin,

But it should be very easy to port it to other webservers (suave, giraffe)

@humhei humhei added the help wanted Extra attention is needed label Feb 23, 2019
@dsyme
Copy link
Collaborator

dsyme commented Feb 25, 2019

Hi @humhei,

I'm really impressed with your work here. It's possible this should replace (or be merged with) the FSLive tool in https://github.com/fsprojects/FSharp.Compiler.PortaCode

I'm wondering, would you like to move this to the fsprojects incubation space?

best
don

@humhei
Copy link
Owner Author

humhei commented Feb 26, 2019

@dsyme
Thanks very much for your invitation ❤️

Of course.(Actually I thought the some these days)

This is my first time to migrate to fsprojects

Please give me more guidance if needed 😏

@humhei
Copy link
Owner Author

humhei commented Feb 28, 2019

Began the migrate work.
May complete in few days...

@humhei
Copy link
Owner Author

humhei commented Mar 24, 2019

Should worked now, (since 0.6.x)
But only for binary
Not for porta codes

@humhei humhei removed the help wanted Extra attention is needed label Apr 3, 2019
@dsyme
Copy link
Collaborator

dsyme commented Apr 10, 2019

@humhei What's the usage model for this? I didn't spot it in the docs

@humhei
Copy link
Owner Author

humhei commented Apr 10, 2019

https://github.com/humhei/FCSWatch#from-cli
autoreload feature which is the same feature to dotnet-watch

  • dotnet tool install --global fcswatch-cli
  • mkdir hello
  • cd hello
  • dotnet new console --language f#
  • fcswatch
  • change file in Program.fs
    image

@humhei
Copy link
Owner Author

humhei commented Apr 10, 2019

Because web server is a single console application now
So web server should also get worked 😄

Also workd for Expecto tests..

https://twitter.com/i/status/1109809542299148288

@humhei
Copy link
Owner Author

humhei commented Apr 10, 2019

The difference to dotnet watch is that,
It's performance is much faster than dotnet watch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants