- added todo for not hard conding project name
- and removed hard url in makefile for localhost redirection
This commit is contained in:
2
Makefile
2
Makefile
@@ -70,7 +70,7 @@ add_url_host:
|
|||||||
@echo $(B_PURPLE)"verify if the wordpress url is added to the local path"$(RESET)
|
@echo $(B_PURPLE)"verify if the wordpress url is added to the local path"$(RESET)
|
||||||
-@ if ! awk "/127.0.0.1/ && /$(WP_URL)/" /etc/hosts 2> /dev/null; then \
|
-@ if ! awk "/127.0.0.1/ && /$(WP_URL)/" /etc/hosts 2> /dev/null; then \
|
||||||
echo $(B_PURPLE)"nop ! trying to add it (might need sudo)"$(RESET); \
|
echo $(B_PURPLE)"nop ! trying to add it (might need sudo)"$(RESET); \
|
||||||
bash -c 'echo -e "\n adding for lejourduprof (you can delete it)\n127.0.0.1 $(WP_URL)" >> /etc/hosts'; \
|
bash -c 'echo -e "\n adding for $(WP_URL) (you can delete it)\n127.0.0.1 $(WP_URL)" >> /etc/hosts'; \
|
||||||
if ! awk "/127.0.0.1/ && /$(WP_URL)/" /etc/hosts 2> /dev/null; then \
|
if ! awk "/127.0.0.1/ && /$(WP_URL)/" /etc/hosts 2> /dev/null; then \
|
||||||
echo $(B_RED)"it didn't succeed :/ try again with sudo"$(RESET); \
|
echo $(B_RED)"it didn't succeed :/ try again with sudo"$(RESET); \
|
||||||
else \
|
else \
|
||||||
|
|||||||
8
notes.md
8
notes.md
@@ -48,5 +48,11 @@
|
|||||||
that i create in wp_entrypoint.sh
|
that i create in wp_entrypoint.sh
|
||||||
- mariadb :
|
- mariadb :
|
||||||
- nginx :
|
- nginx :
|
||||||
|
- **PROJECT NAME :**
|
||||||
|
- for the moment we need to modify the project name and url in the model.env file
|
||||||
|
- that would be better to do it in the parent directory
|
||||||
|
- **LOCAL URL :**
|
||||||
|
- adding local url in /etc/hosts don't work
|
||||||
|
- makefile don't warn it's not there
|
||||||
|
- it should also print the path
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PROJECT_NAME="jipf"
|
PROJECT_NAME="plugin_model"
|
||||||
PROJECT_URL="local_lejourduprof.com"
|
PROJECT_URL="local_plugin_model.com"
|
||||||
PROJECT_PORT=443
|
PROJECT_PORT=443
|
||||||
|
|
||||||
# change execution_time and max_upload_size, in wp and nginx
|
# change execution_time and max_upload_size, in wp and nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user