Surveyr was a cron monitoring tool designed for PHP applications. It alerts users when their cron jobs fail, ensuring timely awareness of issues.
Surveyr leverages Vessel to run seamlessly within a Docker environment. Follow these steps to get started:
-
Set up the environment file:
cp .env.example .env
Edit
.envas needed (e.g., database credentials, app key, etc.). -
Install dependencies:
composer install --ignore-platform-reqs
-
Start Vessel:
./vessel start
This launches the Docker containers for Surveyr.
Note: Ensure Docker is installed and running on your system before proceeding. See the Vessel documentation for setup details.
Once installed, use Vessel to manage Surveyr’s setup and development workflow. Refer to the Vessel Everyday Usage Guide for additional commands and tips.
Run these commands to configure Surveyr:
./vessel composer install # Install PHP dependencies
./vessel artisan key:generate # Generate a unique app key
./vessel artisan migrate # Run database migrations
./vessel artisan storage:link # Link storage for file access
yarn && yarn dev # Install and build frontend assetsAfter completing these steps, Surveyr will be ready to monitor your cron jobs.
Surveyr integrates Laravel Spark (Classic) for subscription and billing management. To set it up:
-
Composer GitHub Token:
When runningcomposer install, you’ll be prompted for a GitHub token to authenticate your Laravel Spark license. Provide a valid token with appropriate permissions. -
Stripe Configuration:
Add your Stripe credentials to the.envfile:STRIPE_KEY=your_stripe_public_key STRIPE_SECRET=your_stripe_secret_keyThese keys are required for processing payments and managing subscriptions.
Tip: Test your Stripe integration in development using Stripe’s test keys before deploying to production.