This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// create a js variable to hold the APP_ENV variable from php | |
const env = '<?php echo getenv("APP_ENV"); ?>'; | |
// Disable console log on production | |
if (env === 'production') { | |
console.log = function () {}; | |
} | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create a js variable to hold the APP_ENV variable from php | |
const env = '<?php echo getenv("APP_ENV"); ?>'; | |
// Disable console log on production | |
if (env === 'production') { | |
console.log = function () {}; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before_script: | |
- apt-get update -qq | |
- apt-get install -qq git | |
# Setup SSH deploy keys | |
- 'which ssh-agent || ( apt-get install -qq openssh-client )' | |
- eval $(ssh-agent -s) | |
- ssh-add <(echo "$SSH_PRIVATE_KEY") | |
- mkdir -p ~/.ssh | |
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' | |