Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opdavies/symfony-server-drupal-example
https://github.com/opdavies/symfony-server-drupal-example
drupal php symfony-server
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/opdavies/symfony-server-drupal-example
- Owner: opdavies
- Created: 2019-12-08T21:35:51.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-28T18:52:05.000Z (almost 5 years ago)
- Last Synced: 2024-12-18T01:09:53.424Z (about 2 months ago)
- Topics: drupal, php, symfony-server
- Language: PHP
- Homepage: https://www.oliverdavies.uk/articles/running-drupal-with-symfony-local-server
- Size: 192 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Testing the Symfony Local Server with Drupal
An example of running Drupal 8.8 on Symfony’s [local web server][docs].
[docs]: https://symfony.com/doc/current/setup/symfony_server.html
![A screenshot of Drupal's status page showing Symfony Local Server](docs/status.png)
## Usage
1. Install the Symfony CLI from .
1. Clone this repository
```bash
git clone https://github.com/opdavies/symfony-server-drupal-test.gitcd symfony-server-drupal-test
```
1. Run `composer install` to download all of the project’s dependencies (Drupal core, Examples module etc).
1. Run `docker-compose up -d` to start the Docker container for MySQL. (You can run `docker-compose ps` afterwards to confirm that it’s running).
1. Run `symfony server:start` to start the web server.
1. Use Drush to install Drupal, prefixed by `symfony php` to allow access to the environment variables needed in `settings.php`:
```bash
cd websymfony php ../vendor/bin/drush site:install --no-interaction
```
1. Go to http://127.0.0.1:8000 to view the site.
1. To run tests, PHPUnit also needs to be prefixed with `symfony php`:
```bash
cd websymfony php ../vendor/bin/phpunit -c core core/modules/action
```
1. Run `symfony server:stop` to stop the web server.