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

feat: add kettle11/devserver #18103

Merged

Conversation

hituzi-no-sippo
Copy link
Sponsor Contributor

@hituzi-no-sippo hituzi-no-sippo commented Dec 11, 2023

#18103 kettle11/devserver: HTTPS server for local development. Implemented in Rust

$ aqua g -i kettle11/devserver

How to confirm if this package works well

Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well.
Please confirm if this package works well yourself as much as possible.

Command and output

$ cat index.html
Hello World
$ devserver &
[1] 4756
$
Serving [/home/test/aqua-registry/test/] at [ https://localhost:8080 ] or [ http://localhost:8080 ]
Automatic reloading is enabled!
Stop with Ctrl+C

$ curl localhost:8080
Hello World
<script>
    // This code is inserted by devserver to enable reloading.
    const socket = new WebSocket("ws://" + window.location.hostname + ":8129");
    socket.addEventListener('open', function (event) { console.log("Reloading enabled!"); });
    socket.addEventListener('message', function (event) { location.reload(); });
$

If files such as configuration file are needed, please share them.

none.

Reference

[kettle11/devserver](https://github.com/kettle11/devserver): A simple HTTPS server for local development. Implemented in Rust
@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Dec 11, 2023
@suzuki-shunsuke suzuki-shunsuke added this to the v4.100.1 milestone Dec 11, 2023
@suzuki-shunsuke
Copy link
Member

Thank you!

@suzuki-shunsuke suzuki-shunsuke merged commit 9443447 into aquaproj:main Dec 11, 2023
16 checks passed
@hituzi-no-sippo hituzi-no-sippo deleted the feat/kettle11/devserver branch December 11, 2023 22:36
@suzuki-shunsuke
Copy link
Member

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

Successfully merging this pull request may close these issues.

None yet

2 participants