Skip to content

Instantly share code, notes, and snippets.

View suenot's full-sized avatar
🕸️
Deep

Eugen Soloviov suenot

🕸️
Deep
View GitHub Profile
@suenot
suenot / gist:44622797cd100a055409c8826d25681c
Created November 10, 2023 07:53
Client handler: Asset (trying to understand how to change descrioption value)
async ({ deep, require }) => {
const React = require('react');
const { useState } = React;
const { Box, Text, Avatar, Wrap, WrapItem, Editable, EditablePreview, EditableInput, EditableTextarea, Center, Flex, Divider } = require('@chakra-ui/react');
const asyncFileTypeId = await deep.id("@deep-foundation/core", "AsyncFile");
const assetNameTypeId = await deep.id("@suenot/asset", "Name");
const assetDescriptionTypeId = await deep.id("@suenot/asset", "Description");
const assetTickerTypeId = await deep.id("@suenot/asset", "Ticker");
const assetAvatarTypeId = await deep.id("@suenot/asset", "Avatar");
@suenot
suenot / docker-compose.yml
Last active January 12, 2024 15:42
deep production instruction
# I add ports in global installed deeplinks: /root/.nvm/versions/node/v18.19.0/lib/node_modules/@deep-foundation/deeplinks/local/docker-compose.yml
version: '3.7'
services:
links:
container_name: deep-links
image: deepf/deeplinks:main
networks:
- network
volumes:
- /var/run/docker.sock:/var/run/docker.sock
@suenot
suenot / gist:3908081ca10d537ab43044ec479bedcb
Created October 26, 2023 07:32
Ошибки. Хотя вроде пошла миграция
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
__dirname /root/.nvm/versions/node/v18.18.2/lib/node_modules/@deep-foundation/deeplinks/imports
rootDir /root/.nvm/versions/node/v18.18.2/lib/node_modules/@deep-foundation/deeplinks
deeplinks:engine:error Error: connect ECONNREFUSED 127.0.0.1:3006
deeplinks:engine:error at AxiosError.from (/root/.nvm/versions/node/v18.18.2/lib/node_modules/@deep-foundation/deeplinks/node_modules/axios/dist/node/axios.cjs:837:14)
deeplinks:engine:error at RedirectableRequest.handleRequestError (/root/.nvm/versions/node/v18.18.2/lib/node_modules/@deep-foundation/deeplinks/node_modules/axios/dist/node/axios.cjs:3016:25)
deeplinks:engine:error at RedirectableRequest.emit (node:events:529:35)
deeplinks:engine:error at eventHandlers.<computed> (/root/.nvm/versions/node/v18.18.2/lib/node_modules/@deep-foundation/deeplinks/node_modules/follow-redirects/index.js:14:24)
deeplinks:engine:error at ClientRequest.emit (node:e
@suenot
suenot / gist:c464ea35f5d0754c2572c7319a114a8c
Created October 26, 2023 07:29
docker-compose.yml prod
root@vmi1342668:~/.nvm/versions/node/v18.18.2/lib/node_modules/@deep-foundation/deeplinks/local# cat docker-compose.yml
version: '3.7'
services:
links:
container_name: deep-links
image: deepf/deeplinks:main
networks:
- network
volumes:
- /var/run/docker.sock:/var/run/docker.sock
@suenot
suenot / gist:30c4ec13805ea239865b80f36771b17c
Created October 25, 2023 14:26
Error when install production deep
```
|root@vmi1342668:~# deeplinks
__dirname /root/.nvm/versions/node/v18.18.0/lib/node_modules/@deep-foundation/deeplinks/imports
rootDir /root/.nvm/versions/node/v18.18.0/lib/node_modules/@deep-foundation/deeplinks
deeplinks:engine:error Error: connect ECONNREFUSED 127.0.0.1:3006
deeplinks:engine:error at AxiosError.from (/root/.nvm/versions/node/v18.18.0/lib/node_modules/@deep-foundation/deeplinks/node_modules/axios/dist/node/axios.cjs:837:14)
deeplinks:engine:error at RedirectableRequest.handleRequestError (/root/.nvm/versions/node/v18.18.0/lib/node_modules/@deep-foundation/deeplinks/node_modules/axios/dist/node/axios.cjs:3016:25)
deeplinks:engine:error at RedirectableRequest.emit (node:events:529:35)
deeplinks:engine:error at eventHandlers.<computed> (/root/.nvm/versions/node/v18.18.0/lib/node_modules/@deep-foundation/deeplinks/node_modules/follow-redirects/index.js:14:24)
deeplinks:engine:error at ClientRequest.emit (node:events:517:28)
```
export DOCKERHOST=149.102.136.233 && export DEEPLINKS_PORT=3006 && export DEEPCASE_PORT=3007 && export DEEPLINKS_PUBLIC_URL=http://localhost:3006 && export DEEPLINKS_HASURA_STORAGE_URL=http://localhost:8000 && export RESTORE_VOLUME_FROM_SNAPSHOT=1 && export MANUAL_MIGRATIONS=0 && export npm_config_yes=true && export JWT_SECRET='{"type":"HS256","key":"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R"}' && export HASURA_GRAPHQL_DATABASE_URL=postgres://postgres:postgrespassword@postgres:5432/postgres && export HASURA_GRAPHQL_ENABLE_CONSOLE=true && export HASURA_GRAPHQL_DEV_MODE=true && export HASURA_GRAPHQL_LOG_LEVEL=debug && export HASURA_GRAPHQL_ENABLED_LOG_TYPES=startup,http-log,webhook-log,websocket-log,query-log && export HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey && export HASURA_GRAPHQL_ENABLE_REMOTE_SCHEMA_PERMISSIONS=true && export HASURA_GRAPHQL_UNAUTHORIZED_ROLE=undefined && export POSTGRES_USER=postgres && export POSTGRES_PASSWORD=postgrespassword && export PGGSSENCMODE=disab
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"workbench.colorCustomizations": {
"terminal.background":"#FAFAFA",
"terminal.foreground":"#383A42",
"terminalCursor.background":"#383A42",
"terminalCursor.foreground":"#383A42",
"terminal.ansiBlack":"#FAFAFA",
"terminal.ansiBlue":"#4078F2",
"terminal.ansiBrightBlack":"#A0A1A7",
"terminal.ansiBrightBlue":"#4078F2",
"terminal.ansiBrightCyan":"#0184BC",
@suenot
suenot / gist:4434cca040459178f9515b52899691d6
Created September 16, 2020 10:11
install docker in ubuntu 18.04
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update
sudo apt install docker-ce
# docker ps