mirror of
https://github.com/BillyOutlast/UNIT3D-Guide.git
synced 2026-02-04 03:01:19 +01:00
1.7 KiB
1.7 KiB
Additional Notes
- Permissions: Use
sudocautiously to avoid permission conflicts, especially with Docker commands requiring elevated access.
Appendix: Sail Commands for UNIT3D
Docker Management
-
Start environment:
./vendor/bin/sail up -dStarts Docker containers in detached mode.
-
Stop environment:
./vendor/bin/sail downStops and removes Docker containers.
-
Restart environment:
./vendor/bin/sail restartApplies changes by restarting the Docker environment.
Dependency Management
-
Install Composer dependencies:
./vendor/bin/sail composer installInstalls PHP dependencies.
-
Update Composer dependencies:
./vendor/bin/sail composer updateUpdates PHP dependencies.
Laravel Artisan
-
Run migrations:
./vendor/bin/sail artisan migrateExecutes database migrations.
-
Seed database:
./vendor/bin/sail artisan db:seedSeeds the database.
-
Refresh database:
./vendor/bin/sail artisan migrate:fresh --seedResets and seeds the database.
-
Cache configurations:
./vendor/bin/sail artisan set:all_cacheClears and caches configurations.
NPM and Assets
-
Install Node.js dependencies:
./vendor/bin/sail bun installInstalls Node.js dependencies.
-
Compile assets:
./vendor/bin/sail bun run buildCompiles CSS and JavaScript assets.
Database Operations
- MySQL interaction:
Opens MySQL CLI.
./vendor/bin/sail mysql -u root -p