Skip to content

Minimal cross-platform tool for launching local servers in seconds — remembers your last config and builds ready-to-run startup scripts.

License

Notifications You must be signed in to change notification settings

Peter-Pix/server-startup-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OS Shell License Version

Server Startup Assistant

A minimal, interactive script that helps you launch local servers in seconds — without typing the same commands over and over.

This tool creates and runs simple startup scripts for different server types (Python, Node.js, ComfyUI, or custom). It remembers your last configuration, generates a ready-to-run script, and asks if you want to start the server immediately.


Features

  • Cross-platform: Works on Windows (.bat) and macOS/Linux (.sh).
  • Interactive setup: Choose your server type, port, and directory.
  • Persistent memory: Saves your last configuration for next time.
  • One-click launch: Automatically generates start_server script and runs it.
  • Custom command mode: For any other server type or startup command.

Supported server types

Option Server Type Command Example
1 Python HTTP python -m http.server 8000
2 Node.js node server.js --port 8000
3 ComfyUI python main.py --listen --port 8000
4 Custom Any command you type manually

Windows Usage

  1. Clone or download this repository.
  2. Open Command Prompt in the folder.
  3. Run:
    run_server.bat
    run_server.bat
  4. Follow the on-screen prompts to: Select server type Set port and project directory
    • (Optional) Start the server immediately

A file named start_server.bat will be generated inside your selected directory. Next time, you can run that file directly or re-run run_server.bat to modify options.

macOS / Linux Usage

  1. Clone or download this repository.
  2. Make the script executable: chmod +x run_server.sh
  3. Run it: ./run_server.sh
  4. Follow the on-screen prompts to: Select your server type Set port and project directory
    • (Optional) Start the server immediately

A file start_server.sh will be generated in your chosen folder.

Config File

After first run, the tool creates a file named last_config.txt, which stores:

  1. SERVER_TYPE=python
  2. PORT=8000
  3. DIR=/home/user/myproject

You can edit this manually or let the script reuse these values automatically.

Example Use Cases

Quickly spin up a local dev server without remembering commands. Manage multiple project environments easily. Launch ComfyUI, Node.js, or FastAPI servers with one click. Keep your workflow clean and consistent across platforms.

License

MIT License — free to use, modify, and share.


tags: server startup script, local server automation, python http server launcher, node server launcher, comfyui startup helper, developer workflow tool, cross-platform dev utility, bash automation script, windows batch tool, run server easily, fastapi local start, ai comfyui launcher, server start assistant, workflow automation tool

About

Minimal cross-platform tool for launching local servers in seconds — remembers your last config and builds ready-to-run startup scripts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published