- added todo for not hard conding project name

- and removed hard url in makefile for localhost redirection
This commit is contained in:
asus
2024-02-08 16:38:42 +01:00
parent 846a41063e
commit e1c2d6c64a
3 changed files with 10 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ add_url_host:
@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 \
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 \
echo $(B_RED)"it didn't succeed :/ try again with sudo"$(RESET); \
else \