Docs Getting started
Upgrading
Update an instance to a new version of the code, and the steps for instances made with older code.
Only the latest release gets security fixes. The changelog of the app repository lists the changes and the breaking changes of each version. Read it before you upgrade. The release notes list the changes that users can see, by date.
You can skip versions, for example from 0.1.0 to 0.3.0. php artisan migrate runs all the migrations that the instance does not have, in order. Read the changelog of each version that you skip, because a version can have a manual step.
Make a backup before you upgrade. Read Backups.
Upgrade the container
Run the installer again. It downloads the new image and replaces the container. The data in the volume stays.
curl -fsSL https://raw.githubusercontent.com/amedina068/feedbackpilgrim/main/install.sh | bash
To upgrade without the installer:
-
Get the new image:
docker pull ghcr.io/amedina068/feedbackpilgrim -
Remove the old container. The volume stays:
docker rm -f feedbackpilgrim -
Start the container with the same
docker runcommand as before.
The container runs the new migrations when it starts. Run docker exec feedbackpilgrim php artisan fp:doctor after the upgrade.
Upgrade with Docker Compose
-
Get the new code:
git pull -
Build the image and start the stack again:
docker compose up -d --build
The web service runs the new migrations when it starts. The queue and scheduler services start again after web is healthy.
Upgrade with the published image
-
If
.envsetsFEEDBACKPILGRIM_VERSION, change it to the new version. -
Get the new image:
docker compose -f docker-compose.image.yml pull -
Start the stack again:
docker compose -f docker-compose.image.yml up -d
Upgrade without Docker
-
Get the new code:
git pull -
Install the PHP packages:
composer install --no-dev --optimize-autoloader -
Build the assets and the widget:
npm ci npm run build -
Run the new migrations:
php artisan migrate --force -
Cache the configuration, the routes and the views again:
php artisan optimize -
Restart the queue worker:
php artisan queue:restart
If an upgrade fails
Restore the backup that you made before the upgrade. Do not use php artisan migrate:rollback. Some migrations change or remove data, and their down method cannot bring the data back. For example, the migration that adds the unique index of the votes removes the duplicate votes.
- Stop the queue worker and the scheduler.
- Go back to the old version of the code or the image.
- Restore the database,
storage/appand.envfrom the backup. Read Backups. - Start the app again.
Instances made with older code
These notes apply to an instance that existed before some changes in the code.
The owner flag
The migration 2026_11_17_000100_add_is_owner_to_users_table makes the first user (the lowest id) the owner. If that user is not the person who runs the instance, make the correct user an owner:
php artisan fp:install --promote=person@example.com
The old billing step
The migration 2026_11_16_000001_complete_pricing_onboarding moves users from the old pricing onboarding step to completed. Feedback Pilgrim has no billing now. An instance that ran the old billing migrations keeps the unused subscriptions tables and the billing columns of users.
Identity verification of the widget
A new project requires identity verification of the widget. A project that existed before this setting does not require it. Read The embeddable widget.
The old widget key
The widget sends the publishable key (pk_...) of the project. The app accepts only this key. A host app that still sends the old public widget token gets 401 with the error Invalid client key, and the widget does not load.
CAUTION: Update each host app before you upgrade. Put the publishable key from Settings > Embed Widget in the data-client attribute of the script tag.
The testimonial rating setting
The app creates the testimonial settings for each new project. To create the rating setting for projects that do not have it, run:
php artisan setup:testimonial-rating-settings
The custom attributes of contacts
The app makes the list of custom attributes from the metadata of the contacts. To make the list again from all the contacts, run:
php artisan fp:sync-contact-attributes