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

Method setStaticServer not found #12

Closed
tyagis opened this issue May 5, 2014 · 10 comments
Closed

Method setStaticServer not found #12

tyagis opened this issue May 5, 2014 · 10 comments
Assignees

Comments

@tyagis
Copy link

tyagis commented May 5, 2014

OS X Mavericks 10.9.2
Node version: v0.10.28

SITYAGI:gh-contributions siddharth_tyagi$ node server.js 

/Users/siddharth_tyagi/gh-contributions/server.js:9
JohnnysStatic.setStaticServer({root: "./public"});
              ^
TypeError: Object #<Object> has no method 'setStaticServer'
    at Object.<anonymous> (/Users/siddharth_tyagi/gh-contributions/server.js:9:15)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3
@IonicaBizau
Copy link
Owner

johnnys-node-static is a deprecated module, so I will update this soon to statique. See #13

BTW, you can try to use another version of johnnys-node-static: v0.1.2

So, in dependencies (package.json) set:

"johnnys-node-static": "0.1.2"

I remember that I did some recent changes, so they broke the module I guess.

@tyagis
Copy link
Author

tyagis commented May 6, 2014

Thanks! Moved past that error, although the repository is not getting generated even though the web interface shows the generation is complete. Console stuck on "exec error: undefined".

screen shot 2014-05-05 at 9 55 54 pm

Console:

SITYAGI:gh-contributions siddharth_tyagi$ node server.js 
Listening on 9000
/css/gh-style.css - OK
/js/index.js - OK
/bootstrap/js/bootstrap.min.js - OK
/js/jquery.min.js - OK
/css/github.css - OK
/bootstrap/css/bootstrap.min.css - OK
exec error: undefined
exec error: undefined
exec error: undefined
exec error: undefined
exec error: undefined
exec error: undefined
exec error: undefined
exec error: undefined
exec error: undefined

@IonicaBizau
Copy link
Owner

I opened a new issue for that. Checkout the public/repos directory. There you should see the generated repo. Can you confirm that?

@tyagis
Copy link
Author

tyagis commented May 6, 2014

Multiple issues:

  1. One click on 'generate', generates the repo directories twice, earlier I thought I was clicking twice
  2. No repo, only one README.md with 'hello wolrd' and a long list of integers.
    multiple_generate_on1click

Console:

SITYAGI-M-V03U:repos siddharth_tyagi$ ls -latr
total 88
-rw-r--r--  1 siddharth_tyagi  staff     14 Apr 14 00:24 .gitignore
drwxr-xr-x  7 siddharth_tyagi  staff    238 Apr 14 00:24 ..
drwxr-xr-x  3 siddharth_tyagi  staff    102 May  6 00:07 rtgmnbzhtxfxbt9
-rw-r--r--  1 siddharth_tyagi  staff  18872 May  6 00:21 rtgmnbzhtxfxbt9.zip
-rw-r--r--  1 siddharth_tyagi  staff  18817 May  6 00:24 kdgz54mh2jfw29.zip
drwxr-xr-x  3 siddharth_tyagi  staff    102 May  6 00:27 kdgz54mh2jfw29
drwxr-xr-x  3 siddharth_tyagi  staff    102 May  6 00:27 public
drwxr-xr-x  8 siddharth_tyagi  staff    272 May  6 00:27 .
SITYAGI-M-V03U:repos siddharth_tyagi$ ls public/repos/
rtgmnbzhtxfxbt9
SITYAGI-M-V03U:repos siddharth_tyagi$ ls public/repos/rtgmnbzhtxfxbt9/
README.md
SITYAGI-M-V03U:repos siddharth_tyagi$ unzip kdgz54mh2jfw29.zip 
Archive:  kdgz54mh2jfw29.zip
   creating: public/repos/kdgz54mh2jfw29/
  inflating: public/repos/kdgz54mh2jfw29/README.md  
SITYAGI-M-V03U:repos siddharth_tyagi$ ls
kdgz54mh2jfw29      kdgz54mh2jfw29.zip  public          rtgmnbzhtxfxbt9     rtgmnbzhtxfxbt9.zip
SITYAGI-M-V03U:repos siddharth_tyagi$ ls -latr public/repos/kdgz54mh2jfw29/
total 80
drwxr-xr-x  3 siddharth_tyagi  staff    102 May  6 00:09 .
-rw-r--r--  1 siddharth_tyagi  staff  40004 May  6 00:24 README.md
drwxr-xr-x  4 siddharth_tyagi  staff    136 May  6 00:27 ..
SITYAGI-M-V03U:repos siddharth_tyagi$ 

README.md contents:

Hello Wolrd
13290
17833
22376
26919
15532
20075
8689
13232
17775
22318
26861
31404
20017
7722
12265

What should the public/repos look like?

@IonicaBizau
Copy link
Owner

Please open new issues for each problem. It's easier to organize them. Thanks! 😄

@tyagis
Copy link
Author

tyagis commented May 6, 2014

Right.

@tyagis
Copy link
Author

tyagis commented May 6, 2014

Done, thanks for your prompt replies! I am eagerly waiting to see your efforts in execution. :)

@IonicaBizau
Copy link
Owner

Any issues you find, just report them.
I and the contributors will try to fix them. 😄

@IonicaBizau
Copy link
Owner

@tyagis I switched the application on statique. Please run a git pull and node server. Can you reproduce the has no method 'setStaticServer' error anymore?

@tyagis
Copy link
Author

tyagis commented May 7, 2014

Please close the original issue, not seeing it anymore after replacing 'johnnys-node-static' with 'statique'.

@tyagis tyagis closed this as completed May 7, 2014
@IonicaBizau IonicaBizau self-assigned this Mar 3, 2015
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

2 participants