Spaces:
Sleeping
Sleeping
Commit
·
19fec73
1
Parent(s):
ada3e75
server envs
Browse files- Dockerfile +2 -1
- mvc/public/index.php +1 -2
Dockerfile
CHANGED
@@ -31,5 +31,6 @@ RUN locate php
|
|
31 |
RUN cat /etc/apache2/mods-available/php8.2.conf
|
32 |
|
33 |
CMD \
|
34 |
-
|
|
|
35 |
grep -rnw '/etc/apache2/' -e 'clear_env' ; echo nada ; whoami; id; cat /etc/apache2/sites-enabled/000-default.conf; service apache2 start; tail -F /var/log/apache2/error.log
|
|
|
31 |
RUN cat /etc/apache2/mods-available/php8.2.conf
|
32 |
|
33 |
CMD \
|
34 |
+
echo URL=$URL >> .env; \
|
35 |
+
echo APP_NAME=$APP_NAME >> .env; \
|
36 |
grep -rnw '/etc/apache2/' -e 'clear_env' ; echo nada ; whoami; id; cat /etc/apache2/sites-enabled/000-default.conf; service apache2 start; tail -F /var/log/apache2/error.log
|
mvc/public/index.php
CHANGED
@@ -1,8 +1,7 @@
|
|
1 |
<?php
|
2 |
-
phpinfo();
|
3 |
print_r(getenv());
|
4 |
echo('<br>');
|
5 |
-
print_r($
|
6 |
define('APP_HOME',dirname(dirname(__FILE__)));
|
7 |
define('URL',getenv('URL'));
|
8 |
define("APP_NAME",getenv("APP_NAME"));
|
|
|
1 |
<?php
|
|
|
2 |
print_r(getenv());
|
3 |
echo('<br>');
|
4 |
+
print_r($_SERVER);
|
5 |
define('APP_HOME',dirname(dirname(__FILE__)));
|
6 |
define('URL',getenv('URL'));
|
7 |
define("APP_NAME",getenv("APP_NAME"));
|