We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 377b49a + 73663b0 commit 5c8cebcCopy full SHA for 5c8cebc
Dockerfile
@@ -12,5 +12,5 @@ RUN curl -sS https://getcomposer.org/installer | php \
12
#install the project
13
RUN cd /var/www/html && rm -rf *
14
RUN /usr/local/bin/composer create-project michaelbelgium/youtube-to-mp3 .
15
-RUN sed -E 's/(define\("API_KEY"\, )""(\))/\1\getenv\("API_KEY"\)\2/' -i search.php
+RUN sed -E 's/.*API_KEY.*/public function _constructor() { $this->API_KEY = getenv("API_KEY"); }/' -i src/Config.php
16
RUN mkdir /var/www/.cache/ && chmod 777 /var/www/ -R
0 commit comments