File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 3737 needs : build
3838 services :
3939 redis :
40- image : redis/redis-stack-server:6 .2.6-v6 # 6.2 is the Upstash compatible Redis version
40+ image : redis/redis-stack-server:7 .2.0-v7
4141
4242 steps :
4343 - name : Checkout code
7979 run : bun install
8080
8181 - name : Run @upstash/redis Test Suite
82- run : bun test pkg
82+ run : bun run test
8383 env :
8484 UPSTASH_REDIS_REST_URL : http://localhost:8080
8585 UPSTASH_REDIS_REST_TOKEN : ${{ env.SRH_TOKEN }}
Original file line number Diff line number Diff line change 11defmodule Srh do
22 use Application
33
4- @ port Application . fetch_env! ( :srh , :port )
4+ @ default_port Application . fetch_env! ( :srh , :port )
55
66 def start ( _type , _args ) do
7- IO . puts ( "Using port #{ @ port } " )
7+ { port , "" } = Integer . parse ( System . get_env ( "SRH_PORT" , Integer . to_string ( @ default_port ) ) ) # Remains @default_port for backwards compatibility
8+
9+ IO . puts ( "Using port #{ port } " )
810
911 children = [
1012 Srh.Auth.TokenResolver ,
@@ -14,7 +16,7 @@ defmodule Srh do
1416 scheme: :http ,
1517 plug: Srh.Http.BaseRouter ,
1618 options: [
17- port: @ port
19+ port: port
1820 ]
1921 }
2022 ]
You can’t perform that action at this time.
0 commit comments