These are chat archives for filearts/plunker

13th
Apr 2016
Abhisek Pattnaik
@abhisekp
Apr 13 2016 03:46

@ggoodman I started the server but in the console, i see the following error

Starting Plunker in: DEVELOPMENT
[OK] Server started
[ERR] Failed to create session: {}

and when I go to http://localhost:8080, I see unstyled contents loaded and there is this error in the browser console.
If i replace hostname.com with localhost:8080 in config file,

XMLHttpRequest cannot load http://api.localhost:8080/plunks/trending?files=yes&pp=12.
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. 
Origin 'http://localhost:8080' is therefore not allowed access.

OR if I replace hostname.com with plnkr.co, then I get this browser console error

XMLHttpRequest cannot load http://api.plnkr.co/plunks/trending?files=yes&pp=12. 
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. 
The response had HTTP status code 400.

CORS! :-1:


This is my config.development.json file

{
  "host": "plnkr.co",
  "url": {
    "www": "http://localhost:8080",
    "collab": "http://collab.plnkr.co",
    "api": "http://api.plnkr.co",
    "embed": "http://embed.plnkr.co",
    "run": "http://run.plnkr.co",
    "carbonadsH": "You can probably ignore this",
    "carbonadsV": "...and this"
  },
  "port": 8080,
  "oauth": {
    "github": {
      "id": "00000000000000000000",
      "secret": "0000000000000000000000000000000000000000"
    }
  }
}
Abhisek Pattnaik
@abhisekp
Apr 13 2016 05:57

Question :raising_hand: :question:

How do I change the line wrap size in the plunker online?
Geoff Goodman
@ggoodman
Apr 13 2016 11:25

How do I change the line wrap size in the plunker online?

@abhisekp I don't think this configuration option is exposed.

@abhisekp You will be unable to run plunker_www locally in isolation because the different services need to talk to each other. You would need to run plunker_api as well, at a minimum.
Abhisek Pattnaik
@abhisekp
Apr 13 2016 11:45
@ggoodman the primary issue is i want to see styled content. But currently see no styles are applied. It looks like 1999 web :P
Geoff Goodman
@ggoodman
Apr 13 2016 11:49
In development, everything is compiled on the fly...
Abhisek Pattnaik
@abhisekp
Apr 13 2016 14:48
@ggoodman ok. Then please guide me in replicating plnkr.co to atleast the part where I cud atleast see the visual features and modify them.
Geoff Goodman
@ggoodman
Apr 13 2016 18:10
I was able to reproduce your issue locally but can't figure out why. You can try running in production mode instead.
# Built static assets
npm run release
# Run the server in production mode
NODE_ENV=production npm start