Companion for Creatio

How to install Creatio locally on Windows with clio

By Smit Suthar · · 3 min read
Short answer

Prepare IIS (clio check-windows-features), a PostgreSQL or MS SQL server that clio knows about, and Redis. Then run clio deploy-creatio --zip-file C:\Builds\creatio.zip --site-name creatio-dev --db pg --db-server-name my-pg from an administrator prompt. clio extracts the build, restores the database, creates the IIS site and picks a free port. clio uninstall-creatio -e creatio-dev removes it again.

A local Creatio instance is the fastest place to develop: no shared environment to break, no waiting for someone else's restart, and file system mode for your IDE. Setting one up by hand means IIS, a database restore, connection strings and Redis. clio's deploy-creatio command does most of that in one step.

What you need

Install

clio deploy-creatio --zip-file C:\Builds\creatio.zip --site-name creatio-dev --db pg --db-server-name my-pg

What the options do:

clio also finds an empty Redis database by itself unless you pass --redis-db. When it finishes, open the site; the first sign-in to a fresh instance can take a few minutes while Creatio starts.

Remove it cleanly

clio uninstall-creatio -e creatio-dev

Use the name the environment is registered under in clio. This removes the IIS site or application, the database and the application files. There is no undo, so double-check the name. You can point it at the installation folder instead, with -d C:\inetpub\wwwroot\creatio-dev.

When it fails

Next steps

Register the new environment if it isn't already (clio reg-web-app), install cliogate with clio install-gate -e creatio-dev, and turn on file system mode with clio turn-fsm -e creatio-dev on if you want to edit packages from your IDE. Then put your packages in Git: here is how.

The one-window way

On Windows, Companion for Creatio has Install Creatio on its Environments screen. Pick the zip (the database type and runtime are read from its name when it says), a site name, an optional port and a database server set up in clio, or Rancher / Kubernetes. Before anything is created it checks administrator rights, the build, that the site name and port are free, the database server including pg_restore, and Redis, and it never overwrites an existing database. Uninstall Creatio asks you to type the name first, and Import from IIS registers Creatio sites already on your machine.

Do it from one window

Companion for Creatio is a free desktop app for Windows and macOS that runs these clio steps for you, as jobs you can watch and cancel.

Download free