Last active
August 10, 2016 05:48
-
-
Save stefansundin/49ece4d75524ffc697a79babd058e89d to your computer and use it in GitHub Desktop.
Use rack to host a static website.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#\ -w -p 3000 | |
use Rack::Static, urls: [""], root: "public", index: "index.html" | |
run ->{} | |
# run "bundle", then "rackup", put files in a directory named "public", then open http://localhost:3000/ | |
# python alternative: | |
# python -m SimpleHTTPServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
gem "rack" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment