Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
This repository was archived by the owner on May 20, 2025. It is now read-only.

Code Push Server doubt #122

@Arturopaz19

Description

@Arturopaz19

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions