File tree 4 files changed +6
-5
lines changed
4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 8
8
git checkout $tag || exit 1
9
9
fi
10
10
11
- docker build -t DevAlone /proxy_py:$tag .
12
- docker push DevAlone /proxy_py:$tag
11
+ docker build -t devalone /proxy_py:$tag .
12
+ docker push devalone /proxy_py:$tag
Original file line number Diff line number Diff line change @@ -10,8 +10,10 @@ services:
10
10
- POSTGRES_DB=proxy_py
11
11
volumes :
12
12
- db_data:/var/lib/postgresql/data
13
+ - ./init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
13
14
core :
14
- build : .
15
+ image : " devalone/proxy_py:latest"
16
+ restart : always
15
17
ports :
16
18
- " 55555:55555"
17
19
environment :
Original file line number Diff line number Diff line change
1
+ CREATE EXTENSION IF NOT EXISTS tsm_system_rows;
Original file line number Diff line number Diff line change @@ -206,8 +206,6 @@ class Meta:
206
206
207
207
db = peewee_async .Manager (raw_db )
208
208
209
- # TODO: make it work
210
- # raw_db.execute_sql('CREATE EXTENSION IF NOT EXISTS tsm_system_rows;')
211
209
raw_db .execute_sql ('''CREATE MATERIALIZED VIEW IF NOT EXISTS working_proxies
212
210
AS SELECT * FROM proxies WHERE number_of_bad_checks = 0;''' )
213
211
db .allow_sync ()
You can’t perform that action at this time.
0 commit comments