Skip to content

Commit

Permalink
removes unnecessary demo apps
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Apr 24, 2023
1 parent bbd4adc commit 8f06522
Show file tree
Hide file tree
Showing 155 changed files with 14 additions and 5,064 deletions.
93 changes: 0 additions & 93 deletions .circleci/config.yml
Expand Up @@ -34,90 +34,6 @@ jobs:
./publish.sh
- slack/status

update-demo-apps:
circleci_ip_ranges: true
docker:
- image: ubuntu:20.04
steps:
- run:
name: Install SSH and curl
command: |
apt update
apt-get install openssh-client curl -y
- run:
name: storing ssh keys
command: |
echo "-----BEGIN RSA PRIVATE KEY-----" > /tmp/dev_ssh
echo $DEV_SERVER_SSH_KEY | sed 's/\s\+/\n/g' >> /tmp/dev_ssh
echo "-----END RSA PRIVATE KEY-----" >> /tmp/dev_ssh
chmod 400 /tmp/dev_ssh
- run:
name: updating thirdpartypasswordless
command: |
ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -i /tmp/dev_ssh ubuntu@ssh.supertokens.com '\
cd supertokens-auth-react/examples/with-thirdpartypasswordless/ && \
git reset --hard && \
git pull && \
(rm -f package-lock.json || true) && \
(rm -rf node_modules || true) && \
npm i && \
REACT_APP_API_PORT=10001 REACT_APP_API_URL=https://api-thirdpartypasswordless.demo.supertokens.com REACT_APP_WEBSITE_PORT=10000 REACT_APP_WEBSITE_URL=https://thirdpartypasswordless.demo.supertokens.com npm run build && \
docker rm demo-app-thirdpartypasswordless -f || true && \
bash /home/ubuntu/supertokens-auth-react/examples/with-thirdpartypasswordless/scripts/start_container.sh'
- run:
name: updating emailpassword
command: |
ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -i /tmp/dev_ssh ubuntu@ssh.supertokens.com '\
cd supertokens-auth-react/examples/with-emailpassword/ && \
git reset --hard && \
git pull && \
(rm -f package-lock.json || true) && \
(rm -rf node_modules || true) && \
npm i && \
REACT_APP_API_PORT=10001 REACT_APP_API_URL=https://api-emailpassword.demo.supertokens.com REACT_APP_WEBSITE_PORT=10000 REACT_APP_WEBSITE_URL=https://emailpassword.demo.supertokens.com npm run build && \
docker rm demo-app -f || true && \
bash /home/ubuntu/supertokens-auth-react/examples/with-emailpassword/scripts/start_container.sh'
- run:
name: updating thirdparty
command: |
ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -i /tmp/dev_ssh ubuntu@ssh.supertokens.com '\
cd supertokens-auth-react/examples/with-thirdparty/ && \
git reset --hard && \
git pull && \
(rm -f package-lock.json || true) && \
(rm -rf node_modules || true) && \
npm i && \
REACT_APP_API_PORT=10001 REACT_APP_API_URL=https://api-thirdparty.demo.supertokens.com REACT_APP_WEBSITE_PORT=10000 REACT_APP_WEBSITE_URL=https://thirdparty.demo.supertokens.com npm run build && \
docker rm demo-app-thirdparty -f || true && \
bash /home/ubuntu/supertokens-auth-react/examples/with-thirdparty/scripts/start_container.sh'
- run:
name: updating thirdpartyemailpassword
command: |
ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -i /tmp/dev_ssh ubuntu@ssh.supertokens.com '\
cd supertokens-auth-react/examples/with-thirdpartyemailpassword/ && \
git reset --hard && \
git pull && \
(rm -f package-lock.json || true) && \
(rm -rf node_modules || true) && \
npm i && \
REACT_APP_API_PORT=10001 REACT_APP_API_URL=https://api-thirdpartyemailpassword.demo.supertokens.com REACT_APP_WEBSITE_PORT=10000 REACT_APP_WEBSITE_URL=https://thirdpartyemailpassword.demo.supertokens.com npm run build && \
docker rm demo-app-thirdpartyemailpassword -f || true && \
bash /home/ubuntu/supertokens-auth-react/examples/with-thirdpartyemailpassword/scripts/start_container.sh'
- run:
name: updating passwordless
command: |
ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -i /tmp/dev_ssh ubuntu@ssh.supertokens.com '\
cd supertokens-auth-react/examples/with-passwordless/ && \
git reset --hard && \
git pull && \
(rm -f package-lock.json || true) && \
(rm -rf node_modules || true) && \
npm i && \
REACT_APP_API_PORT=10001 REACT_APP_API_URL=https://api-passwordless.demo.supertokens.com REACT_APP_WEBSITE_PORT=10000 REACT_APP_WEBSITE_URL=https://passwordless.demo.supertokens.com npm run build && \
docker rm demo-app-passwordless -f || true && \
bash /home/ubuntu/supertokens-auth-react/examples/with-passwordless/scripts/start_container.sh'
- slack/status

update-docs:
docker:
- image: rishabhpoddar/supertokens_website_sdk_testing_node_16
Expand Down Expand Up @@ -147,15 +63,6 @@ workflows:
branches:
ignore: /.*/

- update-demo-apps:
context:
- slack-notification
- saas-backend-production
filters:
branches:
only:
- master

- update-docs:
context:
- slack-notification
Expand Down
1 change: 0 additions & 1 deletion examples/with-emailpassword/.env

This file was deleted.

26 changes: 0 additions & 26 deletions examples/with-emailpassword/.gitignore

This file was deleted.

15 changes: 0 additions & 15 deletions examples/with-emailpassword/Dockerfile

This file was deleted.

192 changes: 0 additions & 192 deletions examples/with-emailpassword/LICENSE.md

This file was deleted.

0 comments on commit 8f06522

Please sign in to comment.