Skip to content

Commit 63b096c

Browse files
committed
Merge branch 'master' of https://github.com/PokeAPI/deploy
2 parents 7a25115 + 37c00cb commit 63b096c

File tree

6 files changed

+20
-1
lines changed

6 files changed

+20
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
steps:
1717
- checkout
1818
- run: (cd functions && npm ci)
19+
- run: PROJECT=pokeapi-test-b6137 sh -x scripts/test.sh
1920

2021
deploy:
2122
executor: node

.vscode/launch.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "attach",
7+
"name": "deploy function debugger",
8+
"port": 9229
9+
}
10+
]
11+
}

functions/.env.local

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Exported firebase functions:config:export command on 10/06/2024
2+
# .env.local file contains environment variables for the Functions Emulator.
3+
NETWORK_BASE_URL="http://localhost:5000" # from network.base_url

functions/.env.pokeapi-215911

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Exported firebase functions:config:export command on 10/06/2024
2+
NETWORK_BASE_URL="https://pokeapi.co"

functions/.env.pokeapi-test-b6137

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Exported firebase functions:config:export command on 10/06/2024
2+
NETWORK_BASE_URL="https://pokeapi-test-b6137.firebaseapp.com"

scripts/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44

55
mkdir -p public
66

7-
Get stored artifacts from api-data and unpack into the 'public' directory
7+
# Get stored artifacts from api-data and unpack into the 'public' directory
88
wget -q -O '_gen.tar.gz' "$(curl -H "Circle-Token: $CIRCLECI_API_TOKEN_NARAMSIM" -s https://circleci.com/api/v1.1/project/github/PokeAPI/api-data/latest/artifacts?branch=staging | jq -r .[0].url)"
99
if [ $? -ne 0 ]; then
1010
echo "Couldn't find the latest api-data .tar.gz for the branch staging"

0 commit comments

Comments
 (0)