python -m from inside /dist

29 views
Skip to first unread message

Ruither Borba

unread,
Dec 23, 2015, 8:07:55 PM12/23/15
to Polymer
I have to ask...
git clone https://github.com/PolymerElements/polymer-starter-kit.git

cd polymer
-starter-kit
sudo npm install
-g gulp bower
gulp
cd dist
python
-m SimpleHTTPServer 8000

the python -m is there to emulate an actual server. Why it does'nt work? I just got a blank page.

PS: gulp serve works as expected.


Max

unread,
Dec 24, 2015, 6:19:43 AM12/24/15
to Ruither Borba, Polymer
Did you follow the instructions? 

<https://github.com/PolymerElements/polymer-starter-kit#install-dependencies>

Particularly :
npm install -g gulp bower && npm install && bower install

It all works fine for me - `gulp` seems to copy bower_components/ and elements/ into dist/ and they're there :

[dist]$ ls
bower_components  favicon.ico  index.html     robots.txt  styles
elements          images       manifest.json  scripts     sw-import.js
[dist]$ python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...
127.0.0.1 - - [24/Dec/2015 11:18:40] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [24/Dec/2015 11:18:40] "GET /styles/main.css HTTP/1.1" 200 -
127.0.0.1 - - [24/Dec/2015 11:18:40] "GET /bower_components/webcomponentsjs/webcomponents-lite.min.js HTTP/1.1" 200 -
127.0.0.1 - - [24/Dec/2015 11:18:40] "GET /elements/elements.html HTTP/1.1" 200 -
127.0.0.1 - - [24/Dec/2015 11:18:40] "GET /scripts/app.js HTTP/1.1" 200 -
127.0.0.1 - - [24/Dec/2015 11:18:41] "GET /images/touch/chrome-touch-icon-192x192.png HTTP/1.1" 200 -

HTH

Max.

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/2aad10f2-eb55-430b-bebf-dfca5e941b02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruither Borba

unread,
Dec 24, 2015, 4:29:49 PM12/24/15
to Polymer
thx max, that npm install && bower instal make all the difference.

Rob Dodson

unread,
Jan 2, 2016, 6:27:05 PM1/2/16
to Ruither Borba, Polymer
I'd recommend running `gulp serve` as we may be moving over to a new server that allows for pushState

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages