Skip to content

Instantly share code, notes, and snippets.

@phcostabh
Created October 4, 2021 13:41
Show Gist options
  • Save phcostabh/7e7f090f876a427ec13f8cf78b50d599 to your computer and use it in GitHub Desktop.
Save phcostabh/7e7f090f876a427ec13f8cf78b50d599 to your computer and use it in GitHub Desktop.
#! /bin/bash
set -eux;
SERVER_IP=$1
ssh "forge@${SERVER_IP}" 'mkdir -p /home/forge/api.chatfood.io/shared/storage/passport/'
ssh "forge@${SERVER_IP}" 'cat > /home/forge/api.chatfood.io/shared/storage/passport/oauth-private.key' <~/Documents/ChatFood/Passport_Keys/oauth-private.key
ssh "forge@${SERVER_IP}" 'cat > /home/forge/api.chatfood.io/shared/storage/passport/oauth-public.key' <~/Documents/ChatFood/Passport_Keys/oauth-public.key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment