Update push instructions for prod

This commit is contained in:
Jordan Prince 2021-04-06 15:13:53 -05:00
parent 329a13af21
commit 3bc0403247
3 changed files with 8 additions and 4 deletions

View File

@ -1 +1,4 @@
gcloud functions deploy uploadFile --runtime nodejs12 --trigger-http --allow-unauthenticated
To deploy to prod, change function name to uploadFileProd in index.js, and CLUSTER url to mainnet, then
run above with uploadFileProd

View File

@ -21,6 +21,7 @@ const FOLDER_NAME = 'arweave';
const ARWEAVE_KEYNAME = 'arweave.json';
const SOLANA_KEYNAME = 'arweave-sol-container.json';
const CLUSTER = 'https://devnet.solana.com';
//const CLUSTER = 'https://api.mainnet-beta.solana.com';
const SYSTEM = '11111111111111111111111111111111';
const MEMO = 'MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr';
const KEYHOLDER = {};

View File

@ -1,12 +1,12 @@
{
"name": "nodejs-docs-samples-functions-http",
"name": "arweave-push",
"version": "0.0.1",
"private": true,
"license": "Apache-2.0",
"author": "Google Inc.",
"author": "Solana Labs",
"repository": {
"type": "git",
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
"url": "https://github.com/solana-labs/oyster.git"
},
"engines": {
"node": ">=12.0.0"