Skip to content

Commit

Permalink
adds deployment file
Browse files Browse the repository at this point in the history
Pragades-Rajagopal committed Feb 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 5b11666 commit 06d3dec
Showing 2 changed files with 40 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/platformatic-static-workspace-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy Platformatic application to the cloud
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '**.md'

jobs:
build_and_deploy:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout application project repository
uses: actions/checkout@v3
- name: npm install --omit=dev
run: npm install --omit=dev
- name: Deploy project
uses: platformatic/onestep@latest
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
platformatic_workspace_id: 96d0d5a2-95be-4bd7-ac79-c4fc1662510c
platformatic_workspace_key: ${{ secrets.PLATFORMATIC_STATIC_WORKSPACE_API_KEY }}
platformatic_config_path: ./platformatic.db.json
env:
DATABASE_URL: sqlite://./db.sqlite
PLT_SERVER_LOGGER_LEVEL: info
PORT: 3042
PLT_SERVER_HOSTNAME: 127.0.0.1
9 changes: 9 additions & 0 deletions platformatic.db.json
Original file line number Diff line number Diff line change
@@ -5,6 +5,15 @@
"port": "{PORT}",
"logger": {
"level": "{PLT_SERVER_LOGGER_LEVEL}"
},
"cors": {
"origin": "https://platformatic.cloud",
"methods": [
"GET",
"POST",
"PUT",
"DELETE"
]
}
},
"db": {

0 comments on commit 06d3dec

Please sign in to comment.