use recherchecontributive.test as domain
authorymh <ymh.work@gmail.com>
Wed, 24 Apr 2019 15:34:20 +0200
changeset 6 36381334b11e
parent 5 3b60692effa9
child 7 3ecf94cab400
use recherchecontributive.test as domain
README.md
nginx/rc-wordpress.conf
wp/docker-entrypoint.sh
--- a/README.md	Wed Apr 24 02:26:02 2019 +0200
+++ b/README.md	Wed Apr 24 15:34:20 2019 +0200
@@ -14,6 +14,7 @@
   - docker-compose
   - A code editor
 
+In you local dns (/etc/hosts for example), map you Docker machine IP to the domain name `recherchecontributive.test`.
 
 ### Installing
 
@@ -42,15 +43,15 @@
 Replace strings in database:
 
 ```
-docker-compose exec wp /var/www/html/vendor/bin/wp --allow-root search-replace https://recherchecontributive.org http://localhost:8080
+docker-compose exec wp /var/www/html/vendor/bin/wp --allow-root search-replace https://recherchecontributive.org http://recherchecontributive.test:8080
 ```
 
 Import media files:
 ```
-$ tar -C src/web/app/ zxf /path/to/recherchecontributive_media.tar.gz 
+$ tar -C src/web/app/ -zxf /path/to/recherchecontributive_media.tar.gz 
 ```
 
-Navigate to http://localhost:8080.
+Navigate to http://recherchecontributive.test:8080.
 
 ## Data management
 
@@ -75,7 +76,7 @@
 If needed do a search replace after this to update the site urls:
 
 ```
-$ docker-compose exec wp /var/www/html/vendor/bin/wp --allow-root search-replace https://recherchecontributive.org http://localhost:8080
+$ docker-compose exec wp /var/www/html/vendor/bin/wp --allow-root search-replace https://recherchecontributive.org http://recherchecontributive.test:8080
 ```
 
 Or change the administration password
--- a/nginx/rc-wordpress.conf	Wed Apr 24 02:26:02 2019 +0200
+++ b/nginx/rc-wordpress.conf	Wed Apr 24 15:34:20 2019 +0200
@@ -1,8 +1,7 @@
 server {
     listen      80;
     listen [::]:80;
-    # server_name               myapp.local www.myapp.local;
-    server_name               localhost 127.0.0.1;
+    server_name               recherchecontributive.test www.recherchecontributive.test;
 
     root /var/www/html/web;
     index index.php;
--- a/wp/docker-entrypoint.sh	Wed Apr 24 02:26:02 2019 +0200
+++ b/wp/docker-entrypoint.sh	Wed Apr 24 15:34:20 2019 +0200
@@ -130,7 +130,7 @@
 				DB_USER=${WORDPRESS_DB_USER}
 				DB_PASSWORD=${WORDPRESS_DB_PASSWORD}
 				DB_HOST=db:3306
-				WP_HOME=http://localhost:8080
+				WP_HOME=http://recherchecontributive.org:8080
 				
 				WP_SITEURL=\${WP_HOME}/wp
 				WP_ENV=development