-
Notifications
You must be signed in to change notification settings - Fork 468
Code Push Server doubt #122
Description
I need test code-push-server locally
i use:
- code push server locally (localhost:3000)
- my api is configured with .env
EMULATED=true # Set to 'true' to use the local emulator
PORT=3000
--- Azurite Storage Configuration ---
AZURE_STORAGE_ACCOUNT=devstoreaccount1 # Azurite storage account name
AZURE_STORAGE_ACCESS_KEY=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw== # Azurite storage access key (if KeyVault not used)
SERVER_URL=http://localhost:3000 # The URL of your server
--- HTTPS Configuration ---
HTTPS=false # Set to 'true' to enable HTTPS for local deployment
--- Debugging Configuration ---
LOGGING=false # Enable CodePush-specific logging
DEBUG_DISABLE_AUTH=true # Disable OAuth authentication route
DEBUG_USER_ID=default # Backend user ID for debugging session
azurite mounted into docker container (localhost:10000, localhost:10001, localhost:10002) and my azurite is listening with docker:
Azurite Blob service is starting at http://0.0.0.0:10000
Azurite Blob service is successfully listening at http://0.0.0.0:10000
Azurite Queue service is starting at http://0.0.0.0:10001
Azurite Queue service is successfully listening at http://0.0.0.0:10001
Azurite Table service is starting at http://0.0.0.0:10002
Azurite Table service is successfully listening at http://0.0.0.0:10002
my API is working and send message:
Welcome to the CodePush REST API!
My doubt is with cli.
I installed dependencies, run built and installed globally. But when I run:
codepush-standalone register http://localhost:3000
the api responds:
The session or access key being used is invalid, please run "code-push-standalone login" again. If you are on an older version of the CLI, you may need to run "code-push-standalone logout" first to clear the session cache.
If I am testing on my local environment, do I need to configure oauth with azure or github, for it to work?