Laragon

Easy-To-Extend

Laragon offers a flexible and scalable development environment that’s easy to extend. With support for tools like `Procfile`, you can manage multiple processes effortlessly; ideal for modern web applications requiring background jobs, queues, or multiple runtimes.

You can read about Procfile here at Heroku: https://devcenter.heroku.com/articles/procfile

Laragon makes Procfile more convenient to use with GUI. On Laragon, all processes in the Procfile will be displayed on Menu > Laragon

Additional Features of Laragon’s Process Management

Laragon’s process manager offers several advanced features that make it powerful and flexible:

  • Process names can include spaces

You can define processes with names like My Cool App, making it easier to identify them.

  • Auto-start support

Use the autorun option to automatically start a process when Laragon launches; ideal for background services or frequently used tools.

  • Silent execution (no console window)

If you wrap a command in quotes (e.g., "php artisan serve"), Laragon will run it without showing a console window, keeping your workspace clean.

  • Custom working directory

Use PWD=your\path\here to set the working directory for the process.

  • Environment file support

Use env_file=path\to\.env to load environment variables from a specific file, perfect for apps with custom configs.

Format of a Procfile

# Format:
; Program Name: autorun COMMANDS env_file=PATH_OF_FILE pwd=PATH_OF_WORKING_DIR ENV_VAR1=VALUE ENV_VAR2="VALUE WITH SPACE"

# Help:
; Program Name: Will be displayed on Procfile or Tools' Menu (can contains space)
; autorun: Your COMMANDS will be run automatically when Laragon starts
; COMMANDS: A command or a series of commands (separated by & )
; env_file: You can set environment variables directly or put them to the file
; PWD: Current working directory - where the COMMANDS run

# Examples:
; My Cool App: autorun node start $PORT PORT=9000 env_file=usr\my_file.env  PWD=usr/proj/myapp DB_HOST=1.2.3.4 DB_PORT=9999 DB_USER=user DB_PASS="!$Ab.cs3cre1" DB_NAME=cooldb 
; Awesome Tool: "PATH HAS SPACES SHOULD BE QUOTED LIKE THIS"
------------------------------------------------------------------------------

Notes:

  • pwd is case-insensitive.
  • autorun is case-insensitive.
  • Your ``env_file` may look like this:
VAR1="VALUE WITH SPACE"
DB_HOST=1.2.3.4
DB_PORT=9999 
DB_USER=user
DB_PASS=!$Ab.cs3cre1