Skip to content

Commit

Permalink
Merge pull request #8 from 4lysson-a/dev
Browse files Browse the repository at this point in the history
Remove unused backend configuration files
  • Loading branch information
4lysson-a authored Jul 9, 2024
2 parents 61b6315 + 2e4f1e1 commit 2c2ad8d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 6 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/deploy-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,24 @@ jobs:
- name: Auth with your back4app account
run: echo ${{ secrets.BACK4APP_ACCOUNT_KEY }} | b4a configure accountkey

- name: Update applicationId in parse.local
- name: Update applicationId in .parse.local
run: |
# Read applicationId of github secret
cd backend
# Verificar se o arquivo .parse.local existe
if [ ! -f .parse.local ]; then
echo "Error: .parse.local file not found"
exit 1
fi
# Debug: list files in backend dir
ls -al
# read applicationId from .parse.local
applicationId=${{ secrets.APPLICATION_ID }}
# Update the file parse.local with new applicationId
# update applicationId in .parse.local
jq --arg applicationId "$applicationId" '.applications.visualizaai.applicationId = $applicationId' .parse.local > .parse.local.tmp && mv .parse.local.tmp .parse.local
- name: Deploy your app
run: b4a deploy ${{ secrets.BACK4APP_APP_NAME }}
run: cd backend && b4a deploy
2 changes: 0 additions & 2 deletions backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@
.env.local
node_modules
logs
.parse.project
config.json
7 changes: 7 additions & 0 deletions backend/.parse.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"project_type": 1,
"parse": {
"jssdk": "2.2.25"
},
"email": ""
}
10 changes: 10 additions & 0 deletions backend/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"applications": {
"_default": {
"link": "visualizaai"
},
"visualizaai": {
"applicationId": ""
}
}
}

0 comments on commit 2c2ad8d

Please sign in to comment.