-
Notifications
You must be signed in to change notification settings - Fork 27
/
.gitpod.yml
25 lines (23 loc) · 1.02 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
tasks:
- init: composer install
command: |
cp .env.example .env
sed -i~ "s|.*MERCHANT_ACCOUNT=*|MERCHANT_ACCOUNT=$ADYEN_MERCHANT_ACCOUNT|" .env
sed -i~ "s|.*API_KEY=*|API_KEY=$ADYEN_API_KEY|" .env
sed -i~ "s|.*CLIENT_KEY=*|CLIENT_KEY=$ADYEN_CLIENT_KEY|" .env
sed -i~ "s|.*HMAC_KEY=*|HMAC_KEY=$ADYEN_HMAC_KEY|" .env
echo "$(echo $ADYEN_API_KEY)$APPEND" > $FILE
if [ -z ${ADYEN_HMAC_KEY+x} ] || [[ -z ${ADYEN_API_KEY+x} ]] || [[ -z ${ADYEN_CLIENT_KEY+x} ]] || [[ -z ${ADYEN_MERCHANT_ACCOUNT+x} ]]; then
echo "Expected environment variables not found. Please set the ADYEN_HMAC_KEY, ADYEN_API_KEY, ADYEN_CLIENT_KEY, ADYEN_MERCHANT_ACCOUNT environment variables and rerun session https://gitpod.io/variables."
else
php artisan key:generate && php artisan serve --port=8080
fi
# exposed ports
ports:
- port: 8080
onOpen: open-preview
visibility: public
vscode:
extensions:
- felixfbecker.php-debug
- bmewburn.vscode-intelephense-client