Skip to content

Commit

Permalink
last changes for pr
Browse files Browse the repository at this point in the history
  • Loading branch information
only-dev-time committed Apr 24, 2024
1 parent 7c1701e commit aa65e3d
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 160 deletions.
57 changes: 0 additions & 57 deletions .devcontainer/Dockerfile.dev

This file was deleted.

46 changes: 0 additions & 46 deletions .devcontainer/devcontainer.json

This file was deleted.

30 changes: 0 additions & 30 deletions .devcontainer/docker-compose.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,3 @@ local.db
*.db
envfile
/deploy
redis_data/
data/
postgres_data/
21 changes: 9 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,32 @@
version: '3'
services:
db:
image: postgres:12
network_mode: "bridge"
image: postgres
environment:
POSTGRES_USER: steem
POSTGRES_PASSWORD: steem123
POSTGRES_DB: hivedb
POSTGRES_USER: testuser
POSTGRES_PASSWORD: testuserpass
POSTGRES_DB: testdb
volumes:
- ./postgres_data:/var/lib/postgresql/data
restart: always
redis:
image: redis
network_mode: "bridge"
volumes:
- ./redis_data:/data
restart: always
hive:
depends_on:
- db
- redis
build: .
network_mode: "bridge"
image: steemit/hivemind:latest
environment:
LOG_LEVEL: DEBUG
DATABASE_URL: postgresql://steem:steem123@db:5432/hivedb
STEEMD_URL: https://api.moecki.online
LOG_LEVEL: INFO
DATABASE_URL: postgresql://testuser:testuserpass@db:5432/testdb
STEEMD_URL: https://api.steemit.com
REDIS_URL: redis://redis:6379
links:
- db:db
- redis:redis
ports:
- 8081:8080
- 8080:8080
restart: always
2 changes: 1 addition & 1 deletion hive/indexer/bookmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ def _is_bookmarked(cls, account, post_id):
"""Return bookmark if it exists."""
sql = """SELECT 1 FROM hive_bookmarks
WHERE account = :account AND post_id = :post_id"""
return DB.query_one(sql, account=account, post_id=post_id)
return DB.query_one(sql, account=account, post_id=post_id)
2 changes: 1 addition & 1 deletion hive/server/bridge_api/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,4 @@ async def get_bookmarked_posts(context, account, sort='bookmarks', category='',
*start,
limit)

return await load_posts(context['db'], ids)
return await load_posts(context['db'], ids)
10 changes: 0 additions & 10 deletions my-postgres.conf

This file was deleted.

0 comments on commit aa65e3d

Please sign in to comment.