Skip to content

Commit

Permalink
Merge pull request #23 from aplbrain/staging-to-sandbox
Browse files Browse the repository at this point in the history
changes needed to go from staging to sandbox
  • Loading branch information
sandyhider authored Mar 3, 2025
2 parents 6a4820a + 76d71ed commit b937f24
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backend-staging-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy backend to staging
on:
push:
branches:
- staging
- sandbox
paths-ignore:
- "web/**"
- "CHANGELOG.md"
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
python -m build --sdist
- name: Create Heroku Build
run: heroku builds:create -a ember-dandi-api-staging --source-tar dist/*.tar.gz
run: heroku builds:create -a ember-dandi-api-sandbox --source-tar dist/*.tar.gz
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_EMAIL: ${{ secrets.HEROKU_EMAIL }}
2 changes: 1 addition & 1 deletion dandiapi/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def mutate_configuration(configuration: type[ComposedConfiguration]):

ALLOWED_HOSTS += [
'api-dandi.emberarchive.org',
'api-dandi-staging.emberarchive.org',
'api-dandi-sandbox.emberarchive.org',
# Example from Linc-Archive
# 'linc-staging-terraform-0b817cb1246b.herokuapp.com/',
# 'api.lincbrain.org'
Expand Down
8 changes: 4 additions & 4 deletions web/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ ignore = "false"
# Staging
[context.master.environment]
NODE_VERSION = "20"
VITE_APP_OAUTH_API_ROOT = "https://api-dandi-staging.emberarchive.org/oauth/"
VITE_APP_OAUTH_API_ROOT = "https://api-dandi-sandbox.emberarchive.org/oauth/"
VITE_APP_OAUTH_CLIENT_ID = "Ov23liQeSrvR2UvwCAO2"
VITE_APP_DANDI_API_ROOT = "https://api-dandi-staging.emberarchive.org/api/"
VITE_APP_DANDI_API_ROOT = "https://api-dandi-sandbox.emberarchive.org/api/"
VITE_APP_SENTRY_DSN = "https://47b58f7fd49191d6d771509e8834788f@o4508337180966912.ingest.us.sentry.io/4508337195909120"
VITE_APP_SENTRY_ENVIRONMENT = "staging"

# Deploy previews
[context.deploy-preview.environment]
NODE_VERSION = "20"
VITE_APP_OAUTH_API_ROOT = "https://api-dandi-staging.emberarchive.org/oauth/"
VITE_APP_OAUTH_API_ROOT = "https://api-dandi-sandbox.emberarchive.org/oauth/"
VITE_APP_OAUTH_CLIENT_ID = "Ov23liQeSrvR2UvwCAO2"
VITE_APP_DANDI_API_ROOT = "https://api-dandi-staging.emberarchive.org/api/"
VITE_APP_DANDI_API_ROOT = "https://api-dandi-sandbox.emberarchive.org/api/"
VITE_APP_SENTRY_DSN = "https://47b58f7fd49191d6d771509e8834788f@o4508337180966912.ingest.us.sentry.io/4508337195909120"
VITE_APP_SENTRY_ENVIRONMENT = "staging"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const neurosiftURL = computed(() => {
const metadata = currentDandiset.value.metadata;
const dandisetId = currentDandiset.value.dandiset.identifier;
const dandisetVersion = metadata.version;
const stagingParam = metadata.url!.startsWith('https://gui-staging.dandiarchive.org/') ? '&staging=1' : '';
const stagingParam = metadata.url!.startsWith('https://gui-dandi-sandbox.emberarchive.org/') ? '&staging=1' : '';
return `https://neurosift.app/?p=/dandiset&dandisetId=${dandisetId}&dandisetVersion=${dandisetVersion}${stagingParam}`;
});
Expand Down

0 comments on commit b937f24

Please sign in to comment.