Shop-Local.site; platform & marketplace for local retailers.
All development should be done locally using Laravel Herd or any other local development environment.
Pushes to main are automatically deployed on the production server.
- Clone the repo
- Install dependencies with
herd composer install - Copy .env.example to .env and configure accordingly (APP_URL, DB credentials, and APP_KEY (run
herd php artisan key:generate)) - Install node dependencies with
herd php artisan npm:install - Initialize a SQlite database for local development with
touch storage/database.sqlite - Run migrations to initialize your database with
herd php artisan migrate - Publish the assets with
herd php winter:mirror public --relative - Set the current version of Winter CMS for cache busting
herd php artisan winter:version
After pulling changes from the remote repo, always run the following commands to make sure your local copy is up to date with the latest changes:
herd composer installherd php artisan npm:installherd php artisan migrateherd php artisan winter:mirror public --relative
NOTE: If using the scheduler; ensure that the scheduler is properly configured by following https://wintercms.com/docs/setup/installation#crontab-setup (add
* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1to the crontab