Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to deploy a Laravel app using Forge CLI.
Laravel
forge deploy [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' or 'init' which are not valid Forge deploy arguments.
Forgetting to specify the site ID.
✗ Incorrect
The 'forge deploy 123' command triggers deployment on the production server.
2fill in blank
mediumComplete the Vapor CLI command to deploy your Laravel app.
Laravel
vapor [1] production Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'init' which initializes a project but does not deploy.
Using 'start' or 'build' which are not deployment commands.
✗ Incorrect
The 'vapor deploy production' command deploys the app to the production environment.
3fill in blank
hardFix the error in the Forge deployment command to specify the site ID.
Laravel
forge deploy [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using environment names instead of numeric site ID.
Using generic words instead of the actual site ID.
✗ Incorrect
The site ID is a numeric value like '123' that identifies the site on Forge.
4fill in blank
hardFill both blanks to configure Vapor environment variables and region.
Laravel
vapor env:set [1] [2] --env=production
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing region codes with environment variable values.
Using false instead of true for enabling debug.
✗ Incorrect
Setting APP_DEBUG to true enables debug mode in production environment.
5fill in blank
hardFill all three blanks to create a Forge site with PHP version and deployment script.
Laravel
forge site:create [1] --server=123456 --php=[2] --deploy-script="[3]"
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong PHP version numbers.
Forgetting to include the deployment script or using incorrect syntax.
✗ Incorrect
The command creates a site named 'my-laravel-app' with PHP 8.1 and runs migrations on deploy.