blob: 46069f33f50d321f63a86574b89169e471428fb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
Drupal 8 Application HOWTO
==========================
This is the basic worflow for a Drupal 8 project set using
[templater](https://templater.fluxo.info).
Requirements
------------
Basique requirements are:
* A [make](https://packages.debian.org/stable/make) implementation.
* Container manager like vagrant, docker or [kvmx](https://kvmx.fluxo.info).
Copying files
-------------
Put files and database dumps in the following folders:
rsync -avz --delete /path/to/backups/files/ files/
rsync -avz --delete /path/to/backups/sql/ sql/
Check the Makefile.drupal8 for the db dump file name and format. Commands like
the examples above can be used to transport files from production back to the
development trees.
Development
-----------
Create the development environment using
make develop
You might need to setup vagrant, docker or kvmx first.
## Default site installation
If you need a fresh drupal database installation, do this in the project
folder inside the container:
make site_install
## Loading and reloading the database
To load or reload the database from the latest dump available at the `sql/`
folder, do the following in the project folder and inside the container:
make reinitdb
## Acessing
The exact port dependes on what you configured on your container configuration,
but you should be able to reach your drupal installation at an address like
http://localhost:8080
## Exporting configuration
Export the configuration is easy. Do the following in the project folder and
inside your container:
make export
## Cleaning
Cleaning is simple and can be run directly outside the container:
make clean
Then the project is ready to be provisioned again into a container.
Production
----------
Prodution provisioning example:
make production # setup environment
sudo vim settings.prod.php # add db info
sudo vim services.prod.yml # customize
sudo vim /var/www/data/drupal-8/sites/sites.php # add site into the pool
make initdb # initialize db from a dump
|