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

Simplest way to "Fire up a web server" to run examples #161

Closed
phtrivier opened this issue May 24, 2013 · 11 comments
Closed

Simplest way to "Fire up a web server" to run examples #161

phtrivier opened this issue May 24, 2013 · 11 comments

Comments

@phtrivier
Copy link

Hi

This might sound like an absolutely stupid question, but what would be the simplest / recommanded / quickest way to do the "Fire up a web server" part of the "Getting started" guide ? Do you recommand any "quick and dirty" server (and what would be the configuration tricks ?)

Thanks

@bsatrom
Copy link
Contributor

bsatrom commented May 24, 2013

If you're on a mac/linux, you can call "python -m SimpleHTTPServer" from the
terminal (in the polymer directory). For Windows, you could use Mongoose,
though I've not tried it myself.

On Fri, May 24, 2013 at 10:32 AM, Pierre-Henri Trivier <
notifications@github.com> wrote:

Hi

This might sound like an absolutely stupid question, but what would be the
simplest / recommanded / quickest way to do the "Fire up a web server" part
of the "Getting started" guide ? Do you recommand any "quick and dirty"
server (and what would be the configuration tricks ?)

Thanks


Reply to this email directly or view it on GitHubhttps://github.com//issues/161
.

@jkomoros
Copy link

That was precisely what I was going to say. That one-line python way is
great.

On Fri, May 24, 2013 at 8:52 AM, Brandon Satrom notifications@github.comwrote:

If you're on a mac, you can call "python -m SimpleHTTPServer" from the
terminal (in the polymer directory). For Windows, you could use Mongoose,
though I've not tried it myself.

On Fri, May 24, 2013 at 10:32 AM, Pierre-Henri Trivier <
notifications@github.com> wrote:

Hi

This might sound like an absolutely stupid question, but what would be
the
simplest / recommanded / quickest way to do the "Fire up a web server"
part
of the "Getting started" guide ? Do you recommand any "quick and dirty"
server (and what would be the configuration tricks ?)

Thanks


Reply to this email directly or view it on GitHub<
https://github.com/Polymer/polymer/issues/161>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/161#issuecomment-18413381
.

@sjmiles
Copy link
Contributor

sjmiles commented May 24, 2013

One of our friends made this: https://npmjs.org/package/polymer-bootstrap

But I haven't tried it personally.

@sjmiles
Copy link
Contributor

sjmiles commented May 24, 2013

Don't Macs generally ship with Apache installed?

On Fri, May 24, 2013 at 9:04 AM, jkomoros notifications@github.com wrote:

That was precisely what I was going to say. That one-line python way is
great.

On Fri, May 24, 2013 at 8:52 AM, Brandon Satrom notifications@github.comwrote:

If you're on a mac, you can call "python -m SimpleHTTPServer" from the
terminal (in the polymer directory). For Windows, you could use
Mongoose,
though I've not tried it myself.

On Fri, May 24, 2013 at 10:32 AM, Pierre-Henri Trivier <
notifications@github.com> wrote:

Hi

This might sound like an absolutely stupid question, but what would be
the
simplest / recommanded / quickest way to do the "Fire up a web server"
part
of the "Getting started" guide ? Do you recommand any "quick and
dirty"
server (and what would be the configuration tricks ?)

Thanks


Reply to this email directly or view it on GitHub<
https://github.com/Polymer/polymer/issues/161>
.


Reply to this email directly or view it on GitHub<
https://github.com/Polymer/polymer/issues/161#issuecomment-18413381>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/161#issuecomment-18414141
.

@homleen
Copy link

homleen commented May 24, 2013

@sjmiles No apache in Macs by default. But "python -m SimpleHTTPServer" really does well.

@wesleycho
Copy link

Macs come with Apache, but you have to configure it/turn it on I believe.

@homleen
Copy link

homleen commented May 24, 2013

@wesleycho http://www.macinstruct.com/node/112 Mac does have built-in server.

@brandonpayton
Copy link

@homleen The option for personal web sharing was removed in Mountain Lion even though Apache still exists on the machine.

@neonstalwart
Copy link

if you have node/npm - https://github.com/nodeapps/http-server#installing-globally

# install http-server
npm install -g http-server
# to serve the current directory
http-server

@homleen
Copy link

homleen commented May 24, 2013

@brandonpayton Thanks for the information.

@phtrivier
Copy link
Author

Thanks, I ended up using a custom "express" server with static rules, but the one-liners are definitely better !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants