Skip to content

Commit

Permalink
Added readme and add php/mysql files
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-e-dietrich committed May 24, 2018
1 parent 3cc43b9 commit 6f74056
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .docksal/etc/mysql/my.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[mysqld]

# Enable slow query logging
#long_query_time=1
#slow_query_log=1
#slow_query_log_file=/dev/stdout
Empty file added .docksal/etc/php/php-cli.ini
Empty file.
4 changes: 4 additions & 0 deletions .docksal/etc/php/php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
; PHP settings
[php]
;Maximum amount of memory a script may consume
;memory_limit = 512M
55 changes: 55 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Symfony Skeleton Installation Powered By Docksal

This is a sample vanilla symfony skeleton installation pre-configured for use with Docksal.

Features:

- Symfony Web Application
- `fin init` [example](.docksal/commands/init)
- Using the [default](.docksal/docksal.env#L9) Docksal LAMP stack with [image version pinning](.docksal/docksal.env#L13-L15)
- PHP and MySQL settings overrides [examples](.docksal/etc)
- Command wrapper for Symfony Console

## Setup instructions

### Step #1: Docksal environment setup

**This is a one time setup - skip this if you already have a working Docksal environment.**

Follow [Docksal environment setup instructions](https://docs.docksal.io/en/master/getting-started/env-setup)

### Step #2: Project setup

1. Clone this repo into your Projects directory

```
git clone https://github.com/docksal/example-symfony-webapp.git symfonyapp
cd symfonyapp
```
2. Initialize the site
This will initialize local settings and install the site connection file.
```
fin init
```
3. Point your browser to
```
http://symfonyapp.docksal
```
## More automation with 'fin init'
Site provisioning can be automated using `fin init`, which calls the shell script in [.docksal/commands/init](.docksal/commands/init).
This script is meant to be modified per project. The one in this repo will give you a good starting example.
Some common tasks that can be handled by the init script (an other [custom commands](https://docs.docksal.io/en/master/fin/custom-commands/)):
- initialize local settings files for Docker Compose, Drupala, Behat, etc.
- import DB or perform a site install
- compile Sass
- run DB updates, revert features, clear caches, etc.
- enable/disable modules, update variables values

0 comments on commit 6f74056

Please sign in to comment.