Repository for for KPCC static projects.
Deploys to http://projects.scpr.org/static.
* 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.
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
The list below is needed for the embed to work in AMP pages.
- All URLs in
index.html
have thehttps://
protocol - Make sure that the Backbone router has the following route in the routes object:
"*notFound": "renderApplicationVisuals"
- 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>
- 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>
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