Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes Vagrant as an installation option, as it has also been removed from the skeleton application #62

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 1 addition & 36 deletions docs/book/getting-started/skeleton-application.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,9 @@ new application is ready to start!
>
> At this point, you will be prompted to answer questions as noted above.
>
> Alternately, if you do not have Composer installed, but *do* have either
> Vagrant or docker-compose available, you can run Composer via those:
> Alternately, if you do not have Composer installed, but *do* have docker-compose available, you can run Composer via those:
>
> ```bash
> # For Vagrant:
> $ vagrant up
> $ vagrant ssh -c 'composer install'
> # For docker-compose:
> $ docker-compose build
> $ docker-compose run laminas composer install
> ```
Expand Down Expand Up @@ -226,7 +221,6 @@ In this tutorial, we will step you through four different ways to setup your web
server:

- Via the PHP built-in web server.
- Via Vagrant.
- Via docker-compose.
- Using Apache.

Expand Down Expand Up @@ -256,34 +250,6 @@ and you should see the following 404 page:
>
> PHP's built-in web server should be used **for development only**.

### Using Vagrant

[Vagrant](https://www.vagrantup.com/) provides a way to describe and provision
virtual machines, and is a common way to provide a coherent and consistent
development environment for development teams. The skeleton application provides
a `Vagrantfile` based on Ubuntu 14.04, and using the `ondrej/php` PPA to provide
PHP 7.3. Start it up using:

```bash
$ vagrant up
```

Once it has been built and is running, you can also run composer from the
virtual machine. As an example, the following will install dependencies:

```bash
$ vagrant ssh -c 'composer install'
```

while this will update them:

```bash
$ vagrant ssh -c 'composer update'
```

The image uses Apache 2.4, and maps the host port 8080 to port 80 on the virtual
machine.

### Using docker-compose

[Docker](https://www.docker.com/) containers wrap a piece of software and everything needed to run it,
Expand Down Expand Up @@ -426,7 +392,6 @@ if (! class_exists(Application::class)) {
throw new RuntimeException(
"Unable to load application.\n"
. "- Type `composer install` if you are developing locally.\n"
. "- Type `vagrant ssh -c 'composer install'` if you are using Vagrant.\n"
. "- Type `docker-compose run laminas composer install` if you are using Docker.\n"
);
}
Expand Down