Join the community to find out what other Atlassian users are discussing, debating and creating.
Hi, so it seems my pipeline file is not running the copy command to copy the .env.example file to .env
I have tried the various copy commands, such as
- cp .env.example .env
- php -r "copy('.env.example', '.env');"
- ln -f -s .env.example .env
But none has worked, and the final builds ends up without the laravel .env file, hence the app doesn't run. I don't understand why this is the case. The pipeline runs successfully and pushes to heroku. Here is the bitbucket-pipelines.yml
image: php:7.3
pipelines:
default:
- step:
caches:
- composer
script:
- cp .env.example .env
- apt-get update
- apt-get install -y unzip git
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- php -v
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD
- export CACHE_DRIVER=redis
- export SESSION_DRIVER=redis
- export DB_CONNECTION=mysql
...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events