|
0
|
1 |
# Recherchecontributive.org Website |
|
|
2 |
|
|
|
3 |
This project is the website for recherchecontributive.org. |
|
|
4 |
|
|
|
5 |
## Getting Started |
|
|
6 |
|
|
|
7 |
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system. |
|
|
8 |
|
|
|
9 |
### Prerequisites |
|
|
10 |
|
|
|
11 |
What things you need to install the software and how to install them |
|
|
12 |
|
|
|
13 |
- docker |
|
|
14 |
- docker-compose |
|
|
15 |
- A code editor |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
### Installing |
|
|
19 |
|
|
|
20 |
Launch the project |
|
|
21 |
|
|
|
22 |
``` |
|
|
23 |
$ docker-compose up |
|
|
24 |
``` |
|
|
25 |
or |
|
|
26 |
``` |
|
|
27 |
$ docker-compose up -d |
|
|
28 |
``` |
|
|
29 |
|
|
|
30 |
import data. |
|
|
31 |
|
|
|
32 |
``` |
|
|
33 |
$ docker-compose exec -T wp /var/www/html/vendor/bin/wp --allow-root db import - < /path/to/recherchecontributive_dbase.sql |
|
|
34 |
``` |
|
|
35 |
|
|
|
36 |
Replace strings in database: |
|
|
37 |
|
|
|
38 |
``` |
|
|
39 |
docker-compose exec wp /var/www/html/vendor/bin/wp --allow-root search-replace https://recherchecontributive.org http://localhost:8080 |
|
|
40 |
``` |
|
|
41 |
|
|
|
42 |
Import media files: |
|
|
43 |
``` |
|
|
44 |
$ tar -C src/web/app/ zxf /path/to/recherchecontributive_media.tar.gz |
|
|
45 |
``` |
|
|
46 |
|
|
|
47 |
Navigate to http://localhost:8080. |
|
|
48 |
|
|
|
49 |
## Deployment |
|
|
50 |
|
|
|
51 |
TODO... |
|
|
52 |
|
|
|
53 |
## Built With |
|
|
54 |
|
|
|
55 |
* [Wordpress](https://wordpress.org/) - The CMS used |
|
|
56 |
|
|
|
57 |
## Versioning |
|
|
58 |
|
|
|
59 |
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://www.iri.centrepompidou.fr/dev/hg/recherchecontributive/tags). |
|
|
60 |
|
|
|
61 |
## Authors |
|
|
62 |
|
|
|
63 |
* **Yves-Marie Haussonne** - *Initial work* |
|
|
64 |
|
|
|
65 |
## License |
|
|
66 |
|
|
|
67 |
This project is licensed under the CecCill License - see the [LICENSE.md](LICENSE.md) file for details |
|
|
68 |
|
|
|
69 |
## Acknowledgments |
|
|
70 |
|
|
|
71 |
* Hat tip to anyone whose code was used |
|
|
72 |
* Wordpress: https://wordpress.org/ |
|
|
73 |
* Bedrock: https://roots.io/bedrock |
|
|
74 |
* Docker for loacl wordpress development: https://urre.me/writings/docker-for-local-wordpress-development/ |
|
|
75 |
|
|
|
76 |
|
|
|
77 |
## Data management |
|
|
78 |
|
|
|
79 |
|
|
|
80 |
### Export database |
|
|
81 |
``` |
|
|
82 |
$ docker-compose exec wp /var/www/html/vendor/bin/wp --allow-root db export --add-drop-table - > recherchecontributive_dbase_2019-04-19.sql |
|
|
83 |
``` |
|
|
84 |
|
|
|
85 |
### Export media |
|
|
86 |
``` |
|
|
87 |
$ tar zcf recherchecontributive_media_2019-04-19.tar.gz -C src/web/app/ uploads |
|
|
88 |
``` |
|
|
89 |
|
|
|
90 |
### Import database |
|
|
91 |
|
|
|
92 |
``` |
|
|
93 |
$ docker-compose exec -T wp /var/www/html/vendor/bin/wp --allow-root db import - < recherchecontributive_dbase_2019-04-19.sql |
|
|
94 |
``` |
|
|
95 |
|
|
|
96 |
If needed do a search replace after this to update the site urls: |
|
|
97 |
|
|
|
98 |
``` |
|
|
99 |
$ docker-compose exec wp /var/www/html/vendor/bin/wp --allow-root search-replace https://recherchecontributive.org http://localhost:8080 |
|
|
100 |
``` |
|
|
101 |
|
|
|
102 |
Or change the administration password |
|
|
103 |
``` |
|
|
104 |
$ docker-compose exec -T wp /var/www/html/vendor/bin/wp --allow-root user update admin --prompt=user_pass |
|
|
105 |
``` |
|
|
106 |
|