Skip to content

Commit

Permalink
prod changes
Browse files Browse the repository at this point in the history
  • Loading branch information
inciner8r committed Apr 11, 2024
1 parent 3d839ad commit 2e8ae89
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 32 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: "[${GITHUB_REF#refs/heads/}] Build and Push to GHCR"
on:
push:
branches: [main]
branches:
- main
- prod

jobs:
next-build:
Expand Down Expand Up @@ -35,22 +37,3 @@ jobs:
docker push $GITHUB_REF_IMAGE
docker push $GITHUB_BRANCH_IMAGE
rm -rf .env
ghcr-push:
needs: next-build # Job depends on next-build(above) job
runs-on: ubuntu-latest
steps:
- name: Deploy on Dev server
if: github.ref == 'refs/heads/main'
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEV_REMOTE_SERVER_ADDRESS }}
username: ${{ secrets.DEV_SERVER_USERNAME }}
key: ${{ secrets.DEV_REMOTE_SERVER_KEY }}
port: ${{ secrets.DEV_SSH_PORT }}
script: |
pwd
cd ~
sudo podman stop launchpad && sudo podman rm launchpad && sudo podman image rm launchpad
echo ${{ secrets.GHCR_TOKEN }} | podman login ghcr.io -u secrets.GHCR_USERNAME --password-stdin
sudo podman pull ghcr.io/myriadflow/launchpad:main
sudo podman run --name="launchpad" -p 9082:3000 -d ghcr.io/myriadflow/launchpad:main
9 changes: 4 additions & 5 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import "../styles/demo/LoadingSpinner.css";
import "../node_modules/react-toastify/dist/ReactToastify.css";

import { RainbowKitProvider, getDefaultWallets } from "@rainbow-me/rainbowkit";
import { polygonMumbai } from "wagmi/chains";
import { polygon } from "wagmi/chains";
import { jsonRpcProvider } from "wagmi/providers/jsonRpc";
import { WagmiConfig, configureChains, createClient } from "wagmi";
import { ApolloProvider, ApolloClient, InMemoryCache } from "@apollo/client";
// const token = localStorage.getItem("platform_token");
const client = new ApolloClient({
uri: "https://mumbai.testgraph.myriadflow.com/subgraphs/name/v1/u123/graphql",
uri: "https://polygon.graph.myriadflow.com/subgraphs/name/v1/u123/graphql",
// uri: "https://flyby-router-demo.herokuapp.com/",
cache: new InMemoryCache(),
headers: {
Expand All @@ -30,14 +30,13 @@ const client = new ApolloClient({

export default function MyApp({ Component, pageProps }) {
const { chains, provider } = configureChains(
[polygonMumbai],
[polygon],
[
alchemyProvider({ alchemyId: process.env.NEXT_PUBLIC_MUMBAI_RPC_URL }),
publicProvider(),
],
jsonRpcProvider({
rpcUrl:
"https://rpc-mumbai.maticvigil.com/v1/f336dfba703440ee198bf937d5c065b8fe04891c",
rpcUrl: "process.env.NEXT_PUBLIC_RPC_PROVIDER",
})
);
const { connectors } = getDefaultWallets({
Expand Down
2 changes: 1 addition & 1 deletion pages/api/eternulsolAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const getAllEternalsolNfts = async (props) => {
// console.log(props);
// const { endPoint } = props;
const endPoint =
"https://mumbai.testgraph.myriadflow.com/subgraphs/name/v1/u123/graphql";
"https://polygon.graph.myriadflow.com/subgraphs/name/v1/u123/graphql";
const headers = {
"Content-Type": "application/json",
};
Expand Down
2 changes: 1 addition & 1 deletion pages/api/graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import axios from "axios";
export default async function handler(req, res) {
// const { subgraphUrl } = req.query;
const endPoint =
"https://mumbai.testgraph.myriadflow.com/subgraphs/name/v1/u123/graphql";
"https://polygon.graph.myriadflow.com/subgraphs/name/v1/u123/graphql";
const headers = {
"Content-Type": "application/json",
};
Expand Down
2 changes: 1 addition & 1 deletion pages/getAllDropsNFT.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function GetAllDropsNft(props) {
body: JSON.stringify(requestBody),
};
const response = await fetch(
`https://mumbai.testgraph.myriadflow.com/subgraphs/name/${storefrontName}/${contractAddress}`,
`https://polygon.graph.myriadflow.com/subgraphs/name/${storefrontName}/${contractAddress}`,
options
)
.then((res) => {
Expand Down
2 changes: 1 addition & 1 deletion pages/getAllEturnalsolNft.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function GetAllEternalSoulNft(props) {
body: JSON.stringify(requestBody),
};
const response = await fetch(
`https://mumbai.testgraph.myriadflow.com/subgraphs/name/${storefrontName}/${contractAddress}`,
`https://polygon.graph.myriadflow.com/subgraphs/name/${storefrontName}/${contractAddress}`,
options
)
.then((res) => {
Expand Down
2 changes: 1 addition & 1 deletion pages/getAllFusionSeriesNft.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function GetAllEternalSoulNft(props) {
body: JSON.stringify(requestBody),
};
const response = await fetch(
`https://mumbai.testgraph.myriadflow.com/subgraphs/name/${storefrontName}/${contractAddress}`,
`https://polygon.graph.myriadflow.com/subgraphs/name/${storefrontName}/${contractAddress}`,
options
)
.then((res) => {
Expand Down
2 changes: 1 addition & 1 deletion pages/getAllPhygitalNFTs.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function GetAllPhygitalNfts(props) {
body: JSON.stringify(requestBody),
};
const response = await fetch(
`https://mumbai.testgraph.myriadflow.com/subgraphs/name/${storefrontName}/${contractAddress}`,
`https://polygon.graph.myriadflow.com/subgraphs/name/${storefrontName}/${contractAddress}`,
options
)
.then((res) => {
Expand Down
2 changes: 1 addition & 1 deletion pages/getAllSegnatureSeriesNft.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function GetAllSignatureSeriesSeriesNft(props) {
body: JSON.stringify(requestBody),
};
const response = await fetch(
`https://mumbai.testgraph.myriadflow.com/subgraphs/name/${storefrontName}/${contractAddress}`,
`https://polygon.graph.myriadflow.com/subgraphs/name/${storefrontName}/${contractAddress}`,
options
)
.then((res) => {
Expand Down

0 comments on commit 2e8ae89

Please sign in to comment.