Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local js plugin deployment cannot serve static asset #415

Open
2 tasks
david90 opened this issue May 3, 2018 · 0 comments
Open
2 tasks

Local js plugin deployment cannot serve static asset #415

david90 opened this issue May 3, 2018 · 0 comments

Comments

@david90
Copy link
Contributor

david90 commented May 3, 2018

(Describe the issue here)

  • Skygear SDK Date/Version: skygear-node
  • JS runtime:
  • Skygear Server Date/Version: 1.5.0
  • Is this a regression?
  • Attached logs, screenshots

Expected Results

  1. localhost:3000/static should be automatically serving public_html
  2. skygearCloud.staticAsset should be able to serve a designated folder

Actual Results

  1. localhost:3000/static is blank
  2. skygearCloud.staticAsset is {"result":{"status":"OK"}}

Steps to reproduce

env

PLUGINS="JSJS"
JSJS_TRANSPORT="http"
JSJS_PATH="http://localhost:9000"

PUBSUB_URL="ws://localhost:3000/pubsub"
SKYGEAR_ENDPOINT="http://localhost:3000"
HTTP=true
SERVE_STATIC_ASSETS=true

staticAsset according to docs

  skygearCloud.staticAsset('/myfolder', function() {
      return __dirname + '/myfolder/';
  });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant