Skip to content

Commit 6f74056

Browse files
Added readme and add php/mysql files
1 parent 3cc43b9 commit 6f74056

File tree

4 files changed

+65
-0
lines changed

4 files changed

+65
-0
lines changed

.docksal/etc/mysql/my.cnf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[mysqld]
2+
3+
# Enable slow query logging
4+
#long_query_time=1
5+
#slow_query_log=1
6+
#slow_query_log_file=/dev/stdout

.docksal/etc/php/php-cli.ini

Whitespace-only changes.

.docksal/etc/php/php.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
; PHP settings
2+
[php]
3+
;Maximum amount of memory a script may consume
4+
;memory_limit = 512M

README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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

Comments
 (0)