|
| 1 | +# Symfony Skeleton Installation Powered By Docksal |
| 2 | + |
| 3 | +This is a sample vanilla symfony skeleton installation pre-configured for use with Docksal. |
| 4 | + |
| 5 | +Features: |
| 6 | + |
| 7 | +- Symfony Web Application |
| 8 | +- `fin init` [example](.docksal/commands/init) |
| 9 | +- Using the [default](.docksal/docksal.env#L9) Docksal LAMP stack with [image version pinning](.docksal/docksal.env#L13-L15) |
| 10 | +- PHP and MySQL settings overrides [examples](.docksal/etc) |
| 11 | +- Command wrapper for Symfony Console |
| 12 | + |
| 13 | +## Setup instructions |
| 14 | + |
| 15 | +### Step #1: Docksal environment setup |
| 16 | + |
| 17 | +**This is a one time setup - skip this if you already have a working Docksal environment.** |
| 18 | + |
| 19 | +Follow [Docksal environment setup instructions](https://docs.docksal.io/en/master/getting-started/env-setup) |
| 20 | + |
| 21 | +### Step #2: Project setup |
| 22 | + |
| 23 | +1. Clone this repo into your Projects directory |
| 24 | + |
| 25 | + ``` |
| 26 | + git clone https://github.com/docksal/example-symfony-webapp.git symfonyapp |
| 27 | + cd symfonyapp |
| 28 | + ``` |
| 29 | +
|
| 30 | +2. Initialize the site |
| 31 | +
|
| 32 | + This will initialize local settings and install the site connection file. |
| 33 | +
|
| 34 | + ``` |
| 35 | + fin init |
| 36 | + ``` |
| 37 | +
|
| 38 | +3. Point your browser to |
| 39 | +
|
| 40 | + ``` |
| 41 | + http://symfonyapp.docksal |
| 42 | + ``` |
| 43 | +
|
| 44 | +## More automation with 'fin init' |
| 45 | +
|
| 46 | +Site provisioning can be automated using `fin init`, which calls the shell script in [.docksal/commands/init](.docksal/commands/init). |
| 47 | +This script is meant to be modified per project. The one in this repo will give you a good starting example. |
| 48 | +
|
| 49 | +Some common tasks that can be handled by the init script (an other [custom commands](https://docs.docksal.io/en/master/fin/custom-commands/)): |
| 50 | +
|
| 51 | +- initialize local settings files for Docker Compose, Drupala, Behat, etc. |
| 52 | +- import DB or perform a site install |
| 53 | +- compile Sass |
| 54 | +- run DB updates, revert features, clear caches, etc. |
| 55 | +- enable/disable modules, update variables values |
0 commit comments