64°F

Aaron Parecki

  • Articles
  • Notes
  • Photos
  • Day 22: XRay Ready for Deployment #100DaysOfIndieWeb

    January 11, 2017

    Today I made a few changes to XRay to make it easier to deploy in more kinds of environments. I also removed a bunch of CSS/JS dependencies and simplified the UI a bit.

    I dropped the CSS framework I was using, and dropped jQuery. All I was using that for was the silly tab interface on the home page, and I figured it wasn't worth all that extra CSS/JS just for that effect.

    I rewrote the CSS for the home page inline, to avoid needing to even fetch an external stylesheet. 

    I then set out to see what it would take to be able to deploy this to shared hosting, especially in a subfolder. I had to do a few things to make that work.

    I wanted it to be as easy to install as "download this zip, extract to a folder on your webserver and run." Since I suspect people might not configure their web server to point to the "public" folder as the root, I had to add a new index.php file to the root of the project which just includes the "public/index.php" file where all the magic happens. I also added .htaccess files in all of the other folders to prevent those files from being run by requests. (The web server should never serve files out of the "vendor" or "views" folder directly.)

    I published a zip file in the "Releases" section on GitHub which includes all the necessary composer dependencies already bundled in the file. This means you can just extract the zip and run it!

    I tested this out by installing it on my Dreamhost account, and it works great!

    You can download the latest version of XRay here:

    https://github.com/aaronpk/XRay/releases

    Portland, Oregon
    Wed, Jan 11, 2017 10:19am -08:00 #xray #p3k #indieweb #100daysofindieweb #100daysofcode
    3 mentions

    Other Mentions

    • Aaron Parecki aaronparecki.com
      My 2017 Year in Review
      Thu, Jan 4, 2018 2:40pm -08:00
    • Aaron Parecki aaronparecki.com
      Week in Review #100DaysOfIndieWeb
      Sat, Jan 14, 2017 10:48am -08:00
    • 100 Days of IndieWeb aaronparecki.com/tag/100daysofindieweb
      Day 22: XRay Ready for Deployment #100DaysOfIndieWeb: aaronparecki.com/2017/01/11/8/x…
      Wed, Jan 11, 2017 6:20pm +00:00 (via brid-gy.appspot.com)
Posted in /articles using quill.p3k.io

Hi, I'm Aaron Parecki, Director of Identity Standards at Okta, and co-founder of IndieWebCamp. I maintain oauth.net, write and consult about OAuth, and participate in the OAuth Working Group at the IETF. I also help people learn about video production and livestreaming. (detailed bio)

I've been tracking my location since 2008 and I wrote 100 songs in 100 days. I've spoken at conferences around the world about owning your data, OAuth, quantified self, and explained why R is a vowel. Read more.

  • Director of Identity Standards at Okta
  • IndieWebCamp Founder
  • OAuth WG Editor
  • OpenID Board Member

  • 🎥 YouTube Tutorials and Reviews
  • 🏠 We're building a triplex!
  • ⭐️ Life Stack
  • ⚙️ Home Automation
  • All
  • Articles
  • Bookmarks
  • Notes
  • Photos
  • Replies
  • Reviews
  • Trips
  • Videos
  • Contact
© 1999-2025 by Aaron Parecki. Powered by p3k. This site supports Webmention.
Except where otherwise noted, text content on this site is licensed under a Creative Commons Attribution 3.0 License.
IndieWebCamp Microformats Webmention W3C HTML5 Creative Commons
WeChat ID
aaronpk_tv