File tree Expand file tree Collapse file tree 4 files changed +3
-65
lines changed
Expand file tree Collapse file tree 4 files changed +3
-65
lines changed Original file line number Diff line number Diff line change 4545 # cd ${{ github.workspace }}/scripts
4646 # python opgarchiveorg
4747
48- - env :
49- READPACKAGES : ${{ secrets.READPACKAGES }}
50- APP_KEY : base64:4ytdRMnjO8RiDzdqUUKANyXdDInMl9+CFSLhsJeTjtM=
51- DB_CONNECTION : mysql
52- DB_HOST : db
53- DB_PORT : 3306
54- DB_DATABASE : opg
55- DB_USERNAME : opg
56- DB_PASSWORD : 123456
57- TELEGRAM_TOKEN : ${{ secrets.BOT_TOKEN }}
58- OWNER_TG_ID : " 421353623"
59- TELEGRAM_API : ${{ secrets.TELEGRAM_API }}
60- TELEGRAM_HASH : ${{ secrets.TELEGRAM_HASH }}
61- APP_DEBUG : true
62- run : |
63- sudo apt-get install -y docker
64- cd ${{ github.workspace }}/backend-runner
65- echo $READPACKAGES | docker login ghcr.io -u alihardan --password-stdin
66- docker compose up -d
67- sleep 30
68- docker compose exec app bash -c "mkdir -p /opgactions/opg-backups && git clone https://a:${{ secrets.BACKUP_TOKEN }}@github.com/oldpersiangames/opg-backups /opgactions/opg-backups && rm -rf /app/storage/app/public && ln -s /opgactions/opg-backups/public /app/storage/app/public"
69- docker compose exec app bash -c "mysql -h db -u opg -p123456 opg < /opgactions/opg-backups/opgbackend.sql"
70-
7148 - name : Setup Node
7249 uses : actions/setup-node@v3
7350 with :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export function useAPI<T>(
99) {
1010 return useFetch ( url , {
1111 ...options ,
12- // baseURL: 'https://backend.oldpersiangames.org',
13- baseURL : 'http://localhost:8000' ,
12+ baseURL : 'https://backend.oldpersiangames.org' ,
13+ // baseURL: 'http://localhost:8000',
1414 } )
1515}
Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ useSeoMeta({
88 description: " لیست بازی های فارسی گمشده" ,
99});
1010const storageUrl =
11- (process .dev ? " http://localhost:8000" : " http://localhost:8000" ) +
12- // : "https://backend.oldpersiangames.org"
11+ (process .dev ? " http://localhost:8000" : " https://backend.oldpersiangames.org" ) +
1312
1413 " /storage" ;
1514 </script >
You can’t perform that action at this time.
0 commit comments