https://github.com/rafalkaron/hosty
Quickly host files on a local web server.
https://github.com/rafalkaron/hosty
host local localhost python python3 server web webserver
Last synced: about 1 year ago
JSON representation
Quickly host files on a local web server.
- Host: GitHub
- URL: https://github.com/rafalkaron/hosty
- Owner: rafalkaron
- License: mit
- Created: 2020-02-15T11:55:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-14T23:23:32.000Z (over 3 years ago)
- Last Synced: 2025-05-15T01:40:05.726Z (about 1 year ago)
- Topics: host, local, localhost, python, python3, server, web, webserver
- Language: Python
- Homepage:
- Size: 874 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hosty
*Quickly host files on a local web server.*

## Operation
The default address of the local web server is `localhost:8000`. If the default port is already used, a consecutive port number is used. Once the server is up, by default, the server address opens in a new tab of your default web browser.
## Hosting Files on a Local Web Server
*You can quickly host files on a local web server by running Hosty in an appropriate directory.*
### Before you begin
1. Download the latest version of **Hosty** for your operating system. See the [Latest Hosty Release](https://github.com/rafalkaron/Hosty/releases/latest).
2. Unzip **Hosty**.
### Procedure
1. Double-click **Hosty**.
1. If needed, accept every security prompt. See [Accepting macOS Security Prompts](https://github.com/rafalkaron/Hosty/wiki/Accepting-macOS-Security-Prompts) or [Accepting Windows Security Prompts](https://github.com/rafalkaron/Hosty/wiki/Accepting-Windows-Security-Prompts).
**Result:** Your default web browser opens the local web server address in a new tab.
1. Fill in the **Directory to host** field with the directory that you want to host by doing one of the following:
**Note:** The default directory is your **Downloads** directory.
* Edit the **Directory to host** field.
* Click **Browse** and select a directory.
1. **Optional:** If you do not want to automatically open the web server address in your web browser, clear the **Web browser preview** check box.
2. Click **Start Server** and accept any security prompts.
3. If you want to host another directory, click **Stop Server** and repeat the procedure.
### Next steps
* To finish, close **Hosty**.
## Troubleshooting
*Resolve common issues with Hosty.*
### The hosted content does not update
* Clear your web browser cache.
* Open the web server address in incognito (private) mode.