Skip to content

Latest commit

 

History

History
97 lines (72 loc) · 3.18 KB

README.md

File metadata and controls

97 lines (72 loc) · 3.18 KB

Static Projects

Repository for for KPCC static projects.

Deploys to http://projects.scpr.org/static.

Deployment

* You'll need your SSH key installed in authorized_keys for user archive on media, and on dev2 if you want to deploy to staging.

* Make sure you have the capistrano rubygem installed. For more information, see https://rubygems.org/gems/capistrano.

From the root of this repository, run the follow commands to deploy to:

Production (media):

cap deploy

Staging (dev2):

cap staging deploy

Once deployed, files will be immediately available to the public at the same paths as are setup in this project. Note that EVERY file will be available for viewing/download.

Paths

nginx passes off any requests to /static to this repository, so the directory/file structure is taken literally. nginx's autoindex module is turned ON, so requests to directories will be automatically resolved to the index.html inside.

For example:

+ static-projects/
  |
  - index.html
  |
  + maps-project/
  |  - index.html
  |  - map.html
  |
  + graph-project/
  |  - graphs.js
  |  - graphs.css
  |  - index.html
  |  - graph.html

Will result in the following URIs, immediately when deployed:

- /static/

- /static/maps-project/
- /static/maps-project/map.html

- /static/graph-project/graphs.js
- /static/graph-project/graphs.css
- /static/graph-project/
- /static/graph-project/graph.html

Embedding Checklist

The list below is needed for the embed to work in AMP pages.

  1. All URLs in index.html have the https:// protocol
  2. Make sure that the Backbone router has the following route in the routes object: "*notFound": "renderApplicationVisuals"
  3. When inserting into outpost, make sure the iframe is in the outermost level and not nested into another element, e.g. This: <iframe></iframe> Instead of this: <p><iframe></iframe></p>
  4. Specify a width and height, and if responsiveness is needed, apply a percentage width in the style property, e.g. <iframe src="example-url" width="636" height"1300" style="width=100%"></iframe>

Fresh Prince Lyrics

Now this is the story all about how
My life got flipped, turned upside down
And I'd like to take a minute, just sit right there
I'll tell you how I became the prince of a town called Bel-Air

In West Philadelphia born and raised
On the playground where I spent most of my days
Chillin' out, maxin', relaxin' all cool
And all shootin' some b-ball outside of the school
When a couple of guys, they were up to no good
Started making trouble in my neighborhood
I got in one little fight and my mom got scared
And said "You're moving with your auntie and uncle in Bel-Air"

I whistled for a cab and when it came near
The license plate said "Fresh" and it had dice in the mirror
If anything I could say that this cab was rare
But I thought nah, forget it, yo holmes to Bel-Air!

I pulled up to a house about seven or eight
And I yelled to the cabbie "Yo, holmes, smell you later!"
Looked at my kingdom I was finally there
To sit on my throne as the Prince of Bel-Air