Comments (4)
I use https://github.com/TheWaWaR/simple-http-server and https://github.com/winsw/winsw.
<service>
<id>witchcraft-server</id>
<executable>server</executable>
<arguments>--nocache "D:\GoogleDrive\Dev\witchcraft" -p 5743</arguments>
<log mode="none"></log>
</service>
from witchcraft.
I just use a nginx, here is a config for windows:
error_log NUL crit;
pid z:/temp/witchcraft-nginx.pid;
worker_processes 1;
events {
worker_connections 512;
}
http {
access_log off;
client_body_temp_path z:/temp 1 2;
proxy_temp_path z:/temp 1 2;
fastcgi_temp_path z:/temp 1 2;
uwsgi_temp_path z:/temp 1 2;
scgi_temp_path z:/temp 1 2;
include mime.types;
default_type application/octet-stream;
charset utf-8;
sendfile on;
keepalive_timeout 60;
server {
listen 127.0.0.1:5743;
server_name witchcraft;
location / {
root ../Witchcraft-mods;
index html/index.html;
expires 10s;
add_header Cache-Control "private";
}
}
}
You just need to replace the z:/temp with your temporary dir as nginx config doesn't support environment variables.
from witchcraft.
https://simplewebserver.org/docs/wsc.html
from witchcraft.
If you have NodeJS installed, you can use browser-sync:
#!/bin/bash
npx browser-sync start --server --files --watch --directory --port 5743 --no-open --listen 127.0.0.1 .
Edit: Add --no-open
and --listen 127.0.0.1
from witchcraft.
Related Issues (20)
- Quick item... code example on your homepage HOT 1
- Cannot assign variables to the window or document scope? HOT 1
- Google analytics is causing couples of issues HOT 11
- The js and css modification is not being picked up by the extension without reloading the page HOT 2
- Quick question: Is it possible to match chrome extensions (i.e. options pages or the LastPass vault)? HOT 2
- question: how can I include resourse, for example: image HOT 3
- Background being unloaded by Chrome due to inactivity
- Question: Disable / unload scripts from running -- str.replace HTML before page is loaded ? HOT 2
- Cannot remove once added script even after deleting file HOT 2
- Support for glob matching HOT 3
- Wildcard support? HOT 3
- File path resolution? HOT 8
- add locally stored custom css/js HOT 1
- Files are still being cached HOT 2
- The script list has not been loaded HOT 5
- How to get a reference to the page level global scope? HOT 1
- Chrome doesnt remember the host url
- Very Basic Question
- check if scripts exist (v3 branch)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from witchcraft.