Skip to content

Commit

Permalink
Change substrate url
Browse files Browse the repository at this point in the history
  • Loading branch information
samchuk-vlad committed Jan 4, 2025
1 parent 5381a4b commit 65a5640
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 19 deletions.
44 changes: 28 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,58 +9,70 @@ Visit Subsocial's [website](https://subsocial.network) to learn more about the p
## Guide to build and deploy polkaverse

### Build the docker images

1. Prepare the [dockerfile](./docker/Dockerfile) and adjust the config if needed.
2. Build the image in local with this command and please ensure to add build argument.

```bash
$ docker build --build-arg GH_GA_ID=valueREDACTED --build-arg GH_APP_KIND=valueREDACTED --build-arg GH_HCAPTCHA_SITE_KEY=valueREDACTED --build-arg GH_AMP_ID=valueREDACTED --build-arg GH_OFFCHAIN_SIGNER_URL=valueREDACTED --build-arg GH_CONNECTION_KIND=valueREDACTED --build-arg GH_SELLER_CLIENT_ID=valueREDACTED --build-arg GH_SERVER_MNEMONIC==valueREDACTED --build-arg GH_SELLER_TOKEN_SIGNER=valueREDACTED --build-arg GH_NEXT_PUBLIC_DATAHUB_QUERY_URL=valueREDACTED --build-arg GH_NEXT_PUBLIC_DATAHUB_SUBSCRIPTION_URL=valueREDACTED --build-arg GH_DATAHUB_QUEUE_URL=valueREDACTED --build-arg GH_DATAHUB_QUEUE_TOKEN=valueREDACTED -t polkaverse-docker-image:latest .
```

Notes:
Please execute the build process with theses build arguments, you need to specify the value.
* GH_GA_ID=valueREDACTED
* GH_APP_KIND=valueREDACTED
* GH_HCAPTCHA_SITE_KEY=valueREDACTED
* GH_AMP_ID=valueREDACTED
* GH_OFFCHAIN_SIGNER_URL=valueREDACTED
* GH_CONNECTION_KIND=valueREDACTED
* GH_SELLER_CLIENT_ID=valueREDACTED
* GH_SELLER_TOKEN_SIGNER=valueREDACTED
* GH_SERVER_MNEMONIC=valueREDACTED
* GH_NEXT_PUBLIC_DATAHUB_QUERY_URL=valueREDACTED
* GH_NEXT_PUBLIC_DATAHUB_SUBSCRIPTION_URL=valueREDACTED
* GH_DATAHUB_QUEUE_URL=valueREDACTED
* GH_DATAHUB_QUEUE_TOKEN=valueREDACTED

- GH_GA_ID=valueREDACTED
- GH_APP_KIND=valueREDACTED
- GH_HCAPTCHA_SITE_KEY=valueREDACTED
- GH_AMP_ID=valueREDACTED
- GH_OFFCHAIN_SIGNER_URL=valueREDACTED
- GH_CONNECTION_KIND=valueREDACTED
- GH_SELLER_CLIENT_ID=valueREDACTED
- GH_SELLER_TOKEN_SIGNER=valueREDACTED
- GH_SERVER_MNEMONIC=valueREDACTED
- GH_NEXT_PUBLIC_DATAHUB_QUERY_URL=valueREDACTED
- GH_NEXT_PUBLIC_DATAHUB_SUBSCRIPTION_URL=valueREDACTED
- GH_DATAHUB_QUEUE_URL=valueREDACTED
- GH_DATAHUB_QUEUE_TOKEN=valueREDACTED

3. Then check the docker images that has been builded.

```bash
$ docker images | grep "polkaverse"
```

### Run the container with docker-compose

1. To run the docker images with docker-compose, please prepare the docker-compose.yaml config file at first.

```yaml
# docker-compose.yml
version: "3"
version: '3'
services:
web-ui:
image: polkaverse-docker-image:latest
ports:
- "3003:3003" # Application port
- '3003:3003' # Application port
container_name: polkaverse-web-app
restart: on-failure
```
```bash
$ docker-compose -f docker-compose.yaml up -d
```

2. Check the running container with this command.

```bash
$ docker-compose ps
$ docker-compose logs
```

3. Test to connect to the application.

```bash
$ curl -I http://localhost:3003
```


## Run locally

Clone this repo:
Expand Down
2 changes: 1 addition & 1 deletion src/config/connections/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import mainConfig from './main'

const devConfig: SubsocialConfig = {
...mainConfig,
substrateUrl: 'wss://para.subsocial.network',
substrateUrl: 'wss://para.f3joule.space',
}

export default devConfig
4 changes: 2 additions & 2 deletions src/config/connections/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { SubsocialConfig } from '../types'
const mainConfig: SubsocialConfig = {
sudoOne: '3osmnRNnrcScHsgkTJH1xyBF5kGjpbWHsGrqM31BJpy4vwn8',

substrateUrl: 'wss://para.subsocial.network',
substrateRpcUrl: 'https://para.subsocial.network/http',
substrateUrl: 'wss://para.f3joule.space',
substrateRpcUrl: 'https://para.f3joule.space/http',
kusamaUrl: 'wss://kusama-rpc.polkadot.io',

offchainUrl: 'https://api.subsocial.network',
Expand Down

0 comments on commit 65a5640

Please sign in to comment.