Skip to content

Instantly share code, notes, and snippets.

@svpernova09
Created July 7, 2019 20:07
Show Gist options
  • Select an option

  • Save svpernova09/32b8aa036247c011ac7f79352a3ee26f to your computer and use it in GitHub Desktop.

Select an option

Save svpernova09/32b8aa036247c011ac7f79352a3ee26f to your computer and use it in GitHub Desktop.
Vagrant up
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\WINDOWS\system32> cd C:\Users\halo\Code\homestead\
PS C:\Users\halo\Code\homestead> vagrant up
==> vagrant: A new version of Vagrant is available: 2.2.5 (installed version: 2.2.4)!
==> vagrant: To upgrade visit: https://www.vagrantup.com/downloads.html
Bringing machine 'homestead' up with 'hyperv' provider...
==> homestead: Verifying Hyper-V is enabled...
==> homestead: Verifying Hyper-V is accessible...
==> homestead: Box 'laravel/homestead' could not be found. Attempting to find and install...
homestead: Box Provider: hyperv
homestead: Box Version: >= 8.0.0
==> homestead: Loading metadata for box 'laravel/homestead'
homestead: URL: https://vagrantcloud.com/laravel/homestead
==> homestead: Adding box 'laravel/homestead' (v8.0.0) for provider: hyperv
homestead: Downloading: https://vagrantcloud.com/laravel/boxes/homestead/versions/8.0.0/providers/hyperv.box
homestead: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com
homestead:
==> homestead: Successfully added box 'laravel/homestead' (v8.0.0) for 'hyperv'!
==> homestead: Importing a Hyper-V instance
homestead: Creating and registering the VM...
homestead: Successfully imported VM
homestead: Please choose a switch to attach to your Hyper-V instance.
homestead: If none of these are appropriate, please open the Hyper-V manager
homestead: to create a new virtual switch.
homestead:
homestead: 1) packer-hyperv-iso
homestead: 2) DockerNAT
homestead: 3) New Virtual Switch
homestead: 4) Default Switch
homestead:
homestead: What switch would you like to use?
homestead: What switch would you like to use? 3
homestead: Configuring the VM...
==> homestead: Starting the machine...
==> homestead: Waiting for the machine to report its IP address...
homestead: Timeout: 120 seconds
homestead: IP: fe80::215:5dff:fe01:257
==> homestead: Waiting for machine to boot. This may take a few minutes...
homestead: SSH address: 192.168.1.113:22
homestead: SSH username: vagrant
homestead: SSH auth method: private key
homestead:
homestead: Vagrant insecure key detected. Vagrant will automatically replace
homestead: this with a newly generated keypair for better security.
homestead:
homestead: Inserting generated public key within guest...
homestead: Removing insecure key from the guest if it's present...
homestead: Key inserted! Disconnecting and reconnecting using new SSH key...
==> homestead: Machine booted and ready!
==> homestead: Preparing SMB shared folders...
homestead: You will be asked for the username and password to use for the SMB
homestead: folders shortly. Please use the proper username/password of your
homestead: account.
homestead:
homestead: Username: halo
homestead: Password (will be hidden):
Vagrant requires administrator access to create SMB shares and
may request access to complete setup of configured shares.
==> homestead: Setting hostname...
==> homestead: Mounting SMB shared folders...
homestead: C:/Users/halo/Code/quickstart-basic-5.3 => /home/vagrant/qs
homestead: C:/Users/halo/Code/homestead => /vagrant
==> homestead: Running provisioner: file...
homestead: C:/Users/halo/Code/homestead/aliases => /tmp/bash_aliases
==> homestead: Running provisioner: shell...
homestead: Running: inline script
==> homestead: Running provisioner: shell...
homestead: Running: inline script
homestead:
homestead: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCntVURf8++zZjGO/JvWbo/TZgMjEqN44bFNh33Ykdf5M3ahNsFvGlw+aSWaJOLX0+3nB0lCVeV6mdXIv1ixDfiarL5leu/BN0N8LmHWhGtXi8pBGS3FiTWWGBkA2iS303Gdj3e3N8N9FdqHUtWifas8B9HvfY00P/9H2Q35AXLDvhXbUbSQMcYxYVDATd7tcoDuwdhaGdPrvmuVPps5yfPfzE9hpU2rVUnHlZ5EgwK9avS91fF0R1NAsasOzU5N3bt/T3khG5XObcHGU2Uiyi/4QbfFhVmvY+TORUoKAelFYtPrbbZfjNVYh8P04b0iudJHZ7mBRiYodj7cgJUYKFb halo@Rage
==> homestead: Running provisioner: shell...
homestead: Running: inline script
==> homestead: Running provisioner: shell...
homestead: Running: inline script
==> homestead: Running provisioner: shell...
homestead: Running: inline script
==> homestead: Running provisioner: shell...
homestead: Running: C:/Users/halo/AppData/Local/Temp/vagrant-shell20190707-9040-18tgk0b.sh
==> homestead: Running provisioner: shell...
homestead: Running: C:/Users/halo/AppData/Local/Temp/vagrant-shell20190707-9040-7m6b1j.sh
==> homestead: Running provisioner: shell...
homestead: Running: script: Creating Certificate: qs.app
==> homestead: Running provisioner: shell...
homestead: Running: script: Creating Site: qs.app
==> homestead: Running provisioner: shell...
homestead: Running: inline script
==> homestead: Running provisioner: shell...
homestead: Running: C:/Users/halo/AppData/Local/Temp/vagrant-shell20190707-9040-1ckp5k5.sh
==> homestead: Running provisioner: shell...
homestead: Running: script: Checking for old Schedule
==> homestead: Running provisioner: shell...
homestead: Running: script: Clear Variables
==> homestead: Running provisioner: shell...
homestead: Running: script: Restarting Cron
==> homestead: Running provisioner: shell...
homestead: Running: script: Restarting Nginx
==> homestead: Running provisioner: shell...
homestead: Running: script: Creating MySQL Database: homestead
==> homestead: Running provisioner: shell...
homestead: Running: script: Creating Postgres Database: homestead
==> homestead: Running provisioner: shell...
homestead: Running: script: Update Composer
homestead: You are already using composer version 1.8.6 (stable channel).
==> homestead: Running provisioner: shell...
homestead: Running: C:/Users/halo/AppData/Local/Temp/vagrant-shell20190707-9040-1otnibw.sh
==> homestead: Running provisioner: shell...
homestead: Running: script: Update motd
==> homestead: Running provisioner: shell...
homestead: Running: C:/Users/halo/AppData/Local/Temp/vagrant-shell20190707-9040-x06lbu.sh
PS C:\Users\halo\Code\homestead> vagrant ssh
Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-54-generic x86_64)
Thanks for using
_ _ _
| | | | | |
| |__ ___ _ __ ___ ___ ___| |_ ___ __ _ __| |
| '_ \ / _ \| '_ ` _ \ / _ \/ __| __/ _ \/ _` |/ _` |
| | | | (_) | | | | | | __/\__ \ || __/ (_| | (_| |
|_| |_|\___/|_| |_| |_|\___||___/\__\___|\__,_|\__,_|| |__ ___ _ __ ___ ___ ___| |_ ___ __ _ __| |
| '_ \ / _ \| '_ ` _ \ / _ \/ __| __/ _ \/ _` |/ _` |
| | | | (_) | | | | | | __/\__ \ || __/ (_| | (_| |
|_| |_|\___/|_| |_| |_|\___||___/\__\___|\__,_|\__,_|
* Homestead v9.0.0 released
* Settler v8.0.0 released
0 packages can be updated.
0 updates are security updates.
vagrant@homestead:~$ composer create-project symfony/website-skeleton symfony4
1/11: http://repo.packagist.org/p/provider-archived$2edb7b4fbca3e9f5a61bfdda69582a5e3843b748dd030acf2ec34104f65c6d17.json
2/11: http://repo.packagist.org/p/provider-latest$8cf0aa805aeadf2a4114d3057555a101841f6aa043c3023768fa844da6de0fdf.json
3/11: http://repo.packagist.org/p/provider-2018-10$49d4beb034440a04a6daeca33e98ada83bebae552c445d8cb42f95f6b4332712.json
4/11: http://repo.packagist.org/p/provider-2013$2ba73e84ca5e9f441de3d6fcee945a5b6d50707cf0b9c3a41b3ebec9ab65c003.json
5/11: http://repo.packagist.org/p/provider-2014$0a5ce8b24ddb8417ea7288cb02cf77a82ca7f2f4103fff9065cbe8d22747bad0.json
6/11: http://repo.packagist.org/p/provider-2019-01$83bc61441544981325d0893d87c1946faf01c17280b5babc0adc85d0d5e76925.json
7/11: http://repo.packagist.org/p/provider-2019-04$8b8570c3e77db06e9ee0767ca7aff457b7a96b79f4aef7d67178b198e30e7ef2.json
8/11: http://repo.packagist.org/p/provider-2015$de58705c5592f435e0b3492a6b5f3bbf4ae52bb6f66f7b3aaf1576e2848019d9.json
9/11: http://repo.packagist.org/p/provider-2017$6d6d8e003bc38b171476a2077b6b3e477a6b729f8950fb80435c76ab12873e31.json
10/11: http://repo.packagist.org/p/provider-2018$b5972b441fc757e76dcdca5cc9249557454b1639b74b09e178097ac24930ef9a.json
11/11: http://repo.packagist.org/p/provider-2016$28477866dd472d6c78abff5076d1e73211bbf8150067bc4f38ff85b131558ce7.json
Finished: success: 11, skipped: 0, failure: 0, total: 11
1/11: http://repo.packagist.org/p/provider-archived$2edb7b4fbca3e9f5a61bfdda69582a5e3843b748dd030acf2ec34104f65c6d17.json
2/11: http://repo.packagist.org/p/provider-2013$2ba73e84ca5e9f441de3d6fcee945a5b6d50707cf0b9c3a41b3ebec9ab65c003.json
3/11: http://repo.packagist.org/p/provider-latest$8cf0aa805aeadf2a4114d3057555a101841f6aa043c3023768fa844da6de0fdf.json
4/11: http://repo.packagist.org/p/provider-2015$de58705c5592f435e0b3492a6b5f3bbf4ae52bb6f66f7b3aaf1576e2848019d9.json
5/11: http://repo.packagist.org/p/provider-2014$0a5ce8b24ddb8417ea7288cb02cf77a82ca7f2f4103fff9065cbe8d22747bad0.json
6/11: http://repo.packagist.org/p/provider-2018-10$49d4beb034440a04a6daeca33e98ada83bebae552c445d8cb42f95f6b4332712.json
7/11: http://repo.packagist.org/p/provider-2019-01$83bc61441544981325d0893d87c1946faf01c17280b5babc0adc85d0d5e76925.json
8/11: http://repo.packagist.org/p/provider-2016$28477866dd472d6c78abff5076d1e73211bbf8150067bc4f38ff85b131558ce7.json
9/11: http://repo.packagist.org/p/provider-2019-04$8b8570c3e77db06e9ee0767ca7aff457b7a96b79f4aef7d67178b198e30e7ef2.json
10/11: http://repo.packagist.org/p/provider-2018$b5972b441fc757e76dcdca5cc9249557454b1639b74b09e178097ac24930ef9a.json
11/11: http://repo.packagist.org/p/provider-2017$6d6d8e003bc38b171476a2077b6b3e477a6b729f8950fb80435c76ab12873e31.json
Finished: success: 11, skipped: 0, failure: 0, total: 11
Installing symfony/website-skeleton (v4.3.99)
- Installing symfony/website-skeleton (v4.3.99): Downloading (100%)
Created project in symfony4
Loading composer repositories with package information
Updating dependencies (including require-dev)
1/1: https://codeload.github.com/symfony/flex/legacy.zip/a388cacccf6e3c5e5a395e020c5aa05849ea4ccc
Finished: success: 1, skipped: 0, failure: 0, total: 1
Package operations: 1 install, 0 updates, 0 removals
- Installing symfony/flex (v1.4.1): Loading from cache
Symfony operations: 1 recipe (421e9eda61679d6edc3b44ecbae92e8f)
- Configuring symfony/flex (>=1.0): From github.com/symfony/recipes:master
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.3.*"
Prefetching 92 packages 🎶 💨
- Downloading (100%)
Package operations: 103 installs, 0 updates, 0 removals
- Installing ocramius/package-versions (1.4.0): Loading from cache
- Installing doctrine/lexer (1.0.2): Loading from cache
- Installing doctrine/annotations (v1.6.1): Loading from cache
- Installing doctrine/reflection (v1.0.0): Loading from cache
- Installing doctrine/event-manager (v1.0.0): Loading from cache
- Installing doctrine/collections (v1.6.2): Loading from cache
- Installing doctrine/cache (v1.8.0): Loading from cache
- Installing doctrine/persistence (1.1.1): Loading from cache
- Installing psr/log (1.1.0): Loading from cache
- Installing symfony/polyfill-php73 (v1.11.0): Loading from cache
- Installing symfony/debug (v4.3.2): Loading from cache
- Installing symfony/polyfill-mbstring (v1.11.0): Loading from cache
- Installing symfony/polyfill-php72 (v1.11.0): Loading from cache
- Installing symfony/polyfill-intl-idn (v1.11.0): Loading from cache
- Installing symfony/mime (v4.3.2): Loading from cache
- Installing symfony/http-foundation (v4.3.2): Loading from cache
- Installing symfony/event-dispatcher-contracts (v1.1.5): Loading from cache
- Installing psr/container (1.0.0): Loading from cache
- Installing psr/cache (1.0.1): Loading from cache
- Installing symfony/event-dispatcher (v4.3.2): Loading from cache
- Installing symfony/http-kernel (v4.3.2): Loading from cache
- Installing symfony/service-contracts (v1.1.5): Loading from cache
- Installing symfony/dependency-injection (v4.3.2): Loading from cache
- Installing symfony/routing (v4.3.2): Loading from cache
- Installing symfony/finder (v4.3.2): Loading from cache
- Installing symfony/filesystem (v4.3.2): Loading from cache
- Installing symfony/config (v4.3.2): Loading from cache
- Installing symfony/var-exporter (v4.3.2): Loading from cache
- Installing symfony/cache-contracts (v1.1.5): Loading from cache
- Installing symfony/cache (v4.3.2): Loading from cache
- Installing symfony/framework-bundle (v4.3.2): Loading from cache
- Installing sensio/framework-extra-bundle (v5.4.0): Loading from cache
- Installing symfony/asset (v4.3.2): Loading from cache
- Installing symfony/dotenv (v4.3.2): Loading from cache
- Installing symfony/expression-language (v4.3.2): Loading from cache
- Installing symfony/inflector (v4.3.2): Loading from cache
- Installing symfony/property-access (v4.3.2): Loading from cache
- Installing symfony/options-resolver (v4.3.2): Loading from cache
- Installing symfony/intl (v4.3.2): Loading from cache
- Installing symfony/polyfill-intl-icu (v1.11.0): Loading from cache
- Installing symfony/form (v4.3.2): Loading from cache
- Installing symfony/http-client-contracts (v1.1.5): Loading from cache
- Installing symfony/http-client (v4.3.2): Loading from cache
- Installing symfony/stopwatch (v4.3.2): Loading from cache
- Installing symfony/console (v4.3.2): Loading from cache
- Installing zendframework/zend-eventmanager (3.2.1): Loading from cache
- Installing zendframework/zend-code (3.3.1): Loading from cache
- Installing ocramius/proxy-manager (2.2.2): Loading from cache
- Installing doctrine/dbal (v2.9.2): Loading from cache
- Installing doctrine/migrations (v2.1.0): Loading from cache
- Installing doctrine/inflector (v1.3.0): Loading from cache
- Installing doctrine/common (v2.10.0): Loading from cache
- Installing symfony/doctrine-bridge (v4.3.2): Loading from cache
- Installing doctrine/doctrine-cache-bundle (1.3.5): Loading from cache
- Installing symfony/security-core (v4.3.2): Loading from cache
- Installing jdorn/sql-formatter (v1.2.17): Loading from cache
- Installing doctrine/doctrine-bundle (1.11.2): Loading from cache
- Installing doctrine/doctrine-migrations-bundle (v2.0.0): Loading from cache
- Installing symfony/yaml (v4.3.2): Loading from cache
- Installing doctrine/instantiator (1.2.0): Loading from cache
- Installing doctrine/orm (v2.6.3): Loading from cache
- Installing symfony/orm-pack (v1.0.6): Loading from cache
- Installing symfony/security-http (v4.3.2): Loading from cache
- Installing symfony/security-guard (v4.3.2): Loading from cache
- Installing symfony/security-csrf (v4.3.2): Loading from cache
- Installing symfony/security-bundle (v4.3.2): Loading from cache
- Installing symfony/serializer (v4.3.2): Loading from cache
- Installing symfony/property-info (v4.3.2): Loading from cache
- Installing webmozart/assert (1.4.0): Loading from cache
- Installing phpdocumentor/reflection-common (1.0.1): Loading from cache
- Installing phpdocumentor/type-resolver (0.4.0): Loading from cache
- Installing phpdocumentor/reflection-docblock (4.3.1): Loading from cache
- Installing symfony/serializer-pack (v1.0.2): Loading from cache
- Installing egulias/email-validator (2.1.9): Loading from cache
- Installing swiftmailer/swiftmailer (v6.2.1): Loading from cache
- Installing symfony/swiftmailer-bundle (v3.2.8): Loading from cache
- Installing symfony/translation-contracts (v1.1.5): Loading from cache
- Installing symfony/translation (v4.3.2): Loading from cache
- Installing symfony/validator (v4.3.2): Loading from cache
- Installing psr/link (1.0.0): Loading from cache
- Installing fig/link-util (1.0.0): Loading from cache
- Installing symfony/web-link (v4.3.2): Loading from cache
- Installing symfony/var-dumper (v4.3.2): Loading from cache
- Installing twig/twig (v2.11.3): Loading from cache
- Installing symfony/twig-bridge (v4.3.2): Loading from cache
- Installing symfony/twig-bundle (v4.3.2): Loading from cache
- Installing symfony/web-profiler-bundle (v4.3.2): Loading from cache
- Installing symfony/profiler-pack (v1.0.4): Loading from cache
- Installing monolog/monolog (1.24.0): Loading from cache
- Installing easycorp/easy-log-handler (v1.0.7): Loading from cache
- Installing symfony/monolog-bridge (v4.3.2): Loading from cache
- Installing symfony/monolog-bundle (v3.4.0): Loading from cache
- Installing symfony/debug-bundle (v4.3.2): Loading from cache
- Installing symfony/debug-pack (v1.0.7): Loading from cache
- Installing nikic/php-parser (v4.2.2): Loading from cache
- Installing symfony/maker-bundle (v1.11.6): Loading from cache
- Installing symfony/phpunit-bridge (v4.3.2): Loading from cache
- Installing symfony/css-selector (v4.3.2): Loading from cache
- Installing symfony/dom-crawler (v4.3.2): Loading from cache
- Installing symfony/browser-kit (v4.3.2): Loading from cache
- Installing symfony/test-pack (v1.0.6): Loading from cache
- Installing symfony/process (v4.3.2): Loading from cache
- Installing symfony/web-server-bundle (v4.3.2): Loading from cache
Writing lock file
Generating autoload files
Symfony operations: 20 recipes (394c7df1b70d87bc7a971c7703ed42c2)
- Configuring symfony/framework-bundle (>=4.2): From github.com/symfony/recipes:master
- Configuring doctrine/annotations (>=1.0): From github.com/symfony/recipes:master
- Configuring symfony/routing (>=4.2): From github.com/symfony/recipes:master
- Configuring sensio/framework-extra-bundle (>=5.2): From github.com/symfony/recipes:master
- Configuring symfony/console (>=3.3): From github.com/symfony/recipes:master
- Configuring doctrine/doctrine-cache-bundle (>=1.3.5): From auto-generated recipe
- Configuring doctrine/doctrine-bundle (>=1.6): From github.com/symfony/recipes:master
- Configuring doctrine/doctrine-migrations-bundle (>=1.2): From github.com/symfony/recipes:master
- Configuring symfony/security-bundle (>=3.3): From github.com/symfony/recipes:master
- Configuring symfony/swiftmailer-bundle (>=2.5): From github.com/symfony/recipes:master
- Configuring symfony/translation (>=3.3): From github.com/symfony/recipes:master
- Configuring symfony/validator (>=4.3): From github.com/symfony/recipes:master
- Configuring symfony/twig-bundle (>=3.3): From github.com/symfony/recipes:master
- Configuring symfony/web-profiler-bundle (>=3.3): From github.com/symfony/recipes:master
- Configuring easycorp/easy-log-handler (>=1.0): From github.com/symfony/recipes:master
- Configuring symfony/monolog-bundle (>=3.3): From github.com/symfony/recipes:master
- Configuring symfony/debug-bundle (>=4.1): From github.com/symfony/recipes:master
- Configuring symfony/maker-bundle (>=1.0): From github.com/symfony/recipes:master
- Configuring symfony/phpunit-bridge (>=4.3): From github.com/symfony/recipes:master
- Configuring symfony/web-server-bundle (>=3.3): From github.com/symfony/recipes:master
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
Executing script cache:clear [OK]
Executing script assets:install public [OK]
Some files may have been created or updated to configure your new packages.
Please review, edit and commit them: these files are yours.
What's next?
* Run your application:
1. Go to the project directory
2. Create your code repository with the git init command
3. Download the Symfony CLI at https://symfony.com/download to install a development web server
* Read the documentation at https://symfony.com/doc
Database Configuration
* Modify your DATABASE_URL config in .env
* Configure the driver (mysql) and
server_version (5.7) in config/packages/doctrine.yaml
How to test?
* Write test cases in the tests/ folder
* Run php bin/phpunit
vagrant@homestead:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment