Installing

Installation

SyncSHOP installs in the browser or from the command line. Both run the same steps and the same server checks.

Before you start, the server needs what Deployment lists: PHP 8.5 with its extensions, PostgreSQL 16 or newer, Redis, and the built front-end files.

In the browser

Until the shop is installed, every page goes to /install.

  1. Setup token. A freshly uploaded shop can be reached by anyone who finds its address first, so the wizard asks for a one-time token that only someone with access to the server can read. Show it on the server with:

    php artisan syncshop:install-token
    

    It's also in storage/app/install-token, readable by the server user only. composer install reminds you of the command but never prints the token, so it can't end up in deploy or CI logs.

  2. Server check. Every requirement with a fix-it hint. Red items stop the install; yellow ones can wait.

  3. Database. Prepare the database creates the tables and the permission catalog.

  4. Owner account. Your name, email address and password (at least 12 characters).

When it finishes, the token file is deleted, storage/app/installed is written, /install stops existing, and you sign in at /admin. Keep storage/ across releases (Deployer shares it): the marker keeps the wizard closed even if the database is briefly unreachable. The first sign-in asks you to set up two-factor authentication.

From the command line

For scripted and container installs:

php artisan syncshop:check                       # what the server still needs
SYNCSHOP_OWNER_PASSWORD='…' php artisan syncshop:install --name="Ioana Mureșan" --email=ioana@example.ro

Without SYNCSHOP_OWNER_PASSWORD, the command asks for the password at a hidden prompt. It never takes it as an argument, which would leave it in the shell history.

On a shop that is already installed, php artisan syncshop:install --force runs the migrations, the permission sync and the address data sync again, and nothing else.

The scheduler fetches BNR exchange rates for the last ten banking days. To issue or import documents dated earlier, load those years too: php artisan currency:fetch-rates --year=2025.

Checking a running shop

php artisan syncshop:check can run at any time; it checks PHP and its settings, file permissions, disk space, the built front-end, PostgreSQL and its extensions, Redis, and whether the scheduler is running. php artisan app:preflight checks the production configuration on top of that, and every release runs it (see Deployment).