0
0
Laravelframework~10 mins

Forge and Vapor deployment in Laravel - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to deploy a Laravel app using Forge CLI.

Laravel
forge deploy [1]
Drag options to blanks, or click blank then click option'
Ainit
Bstart
Cbuild
D123
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' or 'init' which are not valid Forge deploy arguments.
Forgetting to specify the site ID.
2fill in blank
medium

Complete the Vapor CLI command to deploy your Laravel app.

Laravel
vapor [1] production
Drag options to blanks, or click blank then click option'
Ainit
Bbuild
Cdeploy
Dstart
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.
3fill in blank
hard

Fix 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'
A123
Bsite
Cprod
Dapp
Attempts:
3 left
💡 Hint
Common Mistakes
Using environment names instead of numeric site ID.
Using generic words instead of the actual site ID.
4fill in blank
hard

Fill 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'
AAPP_DEBUG
Btrue
Cus-east-1
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing region codes with environment variable values.
Using false instead of true for enabling debug.
5fill in blank
hard

Fill 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'
Amy-laravel-app
B8.1
Ccd /home/forge/my-laravel-app && php artisan migrate
D7.4
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong PHP version numbers.
Forgetting to include the deployment script or using incorrect syntax.