Laragon 3.1.1 is released. (2017-06-20)
Now, you also have a reliable, isolated & portable development environment for Golang:
Self-contained. Like Laragon WAMP, Laragon Go is self-contained which means everything is running inside the installation dir and is isolated with the OS.
To check: install Laragon to C:\laragolang, then move it to C:\laragon-golang - Laragon is still functional.
Today, I'm so happy to announce the release of Laragon 3.1 (2017-06-06)
This release makes working Ruby on Rails a pleasure (which was notorious painful on Windows).
Self-contained. Like Laragon WAMP, Laragon RubyOnRails is self-contained which means everything is running inside the installation dir and is isolated with the OS.
To check, install Laragon to C:\lararails, then move it to C:\laragon-rubyonrails - Laragon is still functional.
Hot swap between Ruby versions (so you don't need rvm, rbenv). You can use many version of Rails with ease. Just add another version of Ruby and type gem install rails -v 5.0.3
Updated Node.js to 8.0.0, npm 5.0.0 (note: you can hot swap between Node.js)
With Laragon 3.1, you can work with multiple versions of Ruby (and therefore with multiple versions of Rails) easily. Here's how:
Download a Ruby 7z and 64-bit version on RubyInstaller: https://rubyinstaller.org/downloads/
Note: If you want to work with Rails in the meantime, you should use Ruby 2.2 or Ruby 2.3 64-bit
For example Ruby 2.2.6 (x64)
Extract it to bin\ruby:
Switch to the version:
Menu > Ruby > Version > ruby-2.2.6-x64-mingw32
That's all forks!
Open Terminal and check:
Note: adding another Ruby version also helps you install different versions of Rails: How to install Rails
However, Laragon makes Procfile more convenient to use with GUI. On Laragon all processes on Procfile will be displayed on Menu > Procfile
Some other differences on Laragon are:
A process name can have spaces. For example: My Cool App
You can add autorun to make the process auto triggered when Laragon starts
You can hide (don't show Console) a process if you quote its command. For example: "php artisan serve"
You can set PWD=xxx - xxx is Path of current processs
You can have env_file=yyy - yyy is Path to your Environment File.
Here is format of a Procfile:
; Program Name: autorun COMMANDS env_file=PATH_OF_FILE pwd=PATH_OF_WORKING_DIR ENV_VAR1=VALUE ENV_VAR2="VALUE WITH SPACE"
; 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
; My Cool App: autorun node start $PORT PORT=9000 env_file=usr\my_file.env PWD=usr/proj/myapp DB_HOST=184.108.40.206 DB_PORT=9999 DB_USER=user DB_PASS="!$Ab.cs3cre1" DB_NAME=cooldb
; Awesome Tool: "PATH HAS SPACES SHOULD BE QUOTED LIKE THIS"
pwd is case-insensitive.
autorun is case-insensitive.
If you want to hide Menu > Procfile, just rename usr\Procfile to usr\Procfile.del
Your env_file may look like this:
VAR1="VALUE WITH SPACE"
As Laragon 3.0 has some breaking changes, we can follow these steps to safely upgrade Laragon.
Dump your database
Rename C:\laragon to C:\laragon2
Install Laragon to C:\laragon
Copy C:\laragon2\usr (User's settings) and C:\laragon2\www (Projects' data) to C:\laragon\usr and C:\laragon\www
Restore your database.
All services are now 64-bit by default
MySQL data dir will be located on data\mysql instead of data as you may need Postgres and MongoDB
Add Procfile idea, it helps you to automate and control your own processes easily. Ref What is Procfile?
...and a lot of improvements to turn Laragon into a universal dev environment.
Previous version of Laragon can hot-swap (1-Click) between PHP versions, MariaDB/MySQL versions, Apache versions, Nginx versions. With Laragon 3.0, you also can:
Hot swap between Node.js versions
Hot swap between Postgres versions
Hot swap between MongoDB versions
Hot swap between Python versions
Hot swap between Java versions (make Java portable on Laragon)
Auto create data dir: No more worries when your data is corrupted or version mismatch. Just rename correspond folder in your data path (data\mysql, data\mongodb, data\postgresql) to another name and Laragon will create a new clean one for you.
Laragon Mint is a mini version of Laragon. It is only 10.5 MB in size.
Laragon Mint is necessary for newcomers who don't know PHP and want a quick environment to learn it in less than a minute.
After intalling Laragon Mint, just 1 click you can run latest version of Wordpress quickly & effortlessly.
Although it is small in size, it is still powerful. I'll make some articles about it soon.
Note: As Laragon is a hackable system, you can add other services to Laragon Mint easily if you want to.
After downloading the right packages, the next steps are easy.
PECL: Extract php_imagick-3.4.3rc1-7.0-ts-vc14-x86.zip to a tmp dir, then put just php_imagick.dll to PHP Extension dir (Menu > PHP > dir:ext)
Imagick Binaries & Dlls: Extract ImageMagick-6.9.3-7-vc14-x86.zip to a tmp dir, then put all dlls in bin (CORE_RL_*.dll, FILTER_analyze_.dll, IM_MOD_RL_*.dll, ImageMagickObject.dll) to PHP dir (Menu > PHP > Version > dir:php-xxx-xxx)
Just click Menu > PHP > Extensions > php_imagick.dll
Open Menu > Laragon > Startup file: user.cmd, add cmd /c start http://localhost
Every time you run Laragon, it will open Terminal and execute the code --> call browser to navigate to http://localhost
:: use this file to run your own startup commands
:: use in front of the command to prevent printing the command
:: call %GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd
:: set PATH=%USER_DIR%\bin\whatever;%PATH%
cmd /c start http://localhost