placeos-frontend-loader
Version, currently 3.0.068 versions
- 3.0.0latestMar 15, 2023
- 2.7.0not indexedAug 13, 2026
- 2.6.0not indexedAug 13, 2026
- 2.5.3not indexedAug 13, 2026
- 2.5.2not indexedAug 13, 2026
- 2.5.1not indexedAug 13, 2026
- 2.5.0not indexedAug 13, 2026
- 2.4.1not indexedAug 13, 2026
- 2.4.0not indexedAug 13, 2026
- 2.3.6not indexedAug 13, 2026
- 2.3.5not indexedAug 13, 2026
- 2.3.4not indexedAug 13, 2026
- 2.3.3not indexedAug 13, 2026
- 2.3.2not indexedAug 13, 2026
- 2.3.1not indexedAug 13, 2026
- 2.3.0not indexedAug 13, 2026
- 2.2.1not indexedAug 13, 2026
- 2.2.0not indexedAug 13, 2026
- 2.1.0not indexedAug 13, 2026
- 2.0.3not indexedAug 13, 2026
- 2.0.2not indexedAug 13, 2026
- 2.0.1not indexedAug 13, 2026
- 2.0.0not indexedAug 13, 2026
- 1.5.2-alphanot indexedAug 13, 2026
- 1.5.1-alphanot indexedAug 13, 2026
- 1.4.0not indexedAug 13, 2026
- 1.3.3not indexedAug 13, 2026
- 1.3.2not indexedAug 13, 2026
- 1.3.1not indexedAug 13, 2026
- 1.3.0not indexedAug 13, 2026
- 1.2.2not indexedAug 13, 2026
- 1.2.0not indexedAug 13, 2026
- 1.1.1not indexedAug 13, 2026
- 1.1.0not indexedAug 13, 2026
- 1.0.0not indexedAug 13, 2026
- 0.11.4not indexedAug 13, 2026
- 0.11.3not indexedAug 13, 2026
- 0.11.2not indexedAug 13, 2026
- 0.11.1not indexedAug 13, 2026
- 0.11.0not indexedAug 13, 2026
- 0.10.9not indexedAug 13, 2026
- 0.10.8not indexedAug 13, 2026
- 0.10.6not indexedAug 13, 2026
- 0.10.5not indexedAug 13, 2026
- 0.10.4not indexedAug 13, 2026
- 0.10.3not indexedAug 13, 2026
- 0.10.2not indexedAug 13, 2026
- 0.10.1not indexedAug 13, 2026
- 0.10.0not indexedAug 13, 2026
- 0.9.0not indexedAug 13, 2026
- 0.8.0not indexedAug 13, 2026
- 0.7.3not indexedAug 13, 2026
- 0.7.2not indexedAug 13, 2026
- 0.7.1not indexedAug 13, 2026
- 0.7.0not indexedAug 13, 2026
- 0.6.4not indexedAug 13, 2026
- 0.6.3not indexedAug 13, 2026
- 0.6.2not indexedAug 13, 2026
- 0.6.1not indexedAug 13, 2026
- 0.6.0not indexedAug 13, 2026
- 0.5.0not indexedAug 13, 2026
- 0.4.2not indexedAug 13, 2026
- 0.4.1not indexedAug 13, 2026
- 0.4.0not indexedAug 13, 2026
- 0.3.0not indexedAug 13, 2026
- 0.2.2not indexedAug 13, 2026
- 0.2.1not indexedAug 13, 2026
- 0.2.0not indexedAug 13, 2026
github.com/PlaceOS/frontend-loader
PlaceOS sidecar service for managing frontends.
Installation
# Add this to your shard.yml
dependencies:
placeos-frontend-loader:
github: PlaceOS/frontend-loader
version: ~> 3.0.0Then run:
shards installshard.yml
- Crystal
- no constraint declared
- Authors
- Caspian Baska, Tassja Kriek
- Target
frontendsfrom src/app.cr
Dependencies
Runtime Dependencies
- raven*github: Sija/raven.cr, branch: master
- tasker*github: spider-gazelle/tasker
- crystar*github: naqvis/crystar
- connect-proxy~> 2.0github: spider-gazelle/connect-proxy
- git-repository*github: place-labs/git-repository
- placeos-models~> 8.1github: placeos/models
- placeos-resource~> 2.1github: place-labs/resource
- action-controller~> 5.3github: spider-gazelle/action-controller
- placeos-log-backend>= 0.11.0github: place-labs/log-backend
Development Dependencies
README
PlaceOS Frontend Loader
An application Intended to be a sidecar to a webserver that listens for published front-end repositories and clones them to the webserver's static folder. The loader can also be configured to update via a CRON.
Included in this repo is an alpine based Dockerfile.
Usage
-
Specify the your static content path via the
PLACE_LOADER_WWWenvironment variable, or the--wwwflag. -
Ensure that the content directory is on a shared volume with the webserver.
-
A repository pinned to
HEADwill be kept up to date automatically. -
If a repository commit is specified it will held at that commit.
-
Configuring the update frequency is done via a CRON in
PLACE_LOADER_CRONenvironment variable, or the--update-cronflag. Use crontab guru to validate your CRONs!!!
Client
Included is a simple client that can be configured via the PLACE_LOADER_URI environment variable.
require "placeos-frontend-loader/client"
# One-shot
commits = PlaceOS::FrontendLoader::Client.client do |client|
client.commits("backoffice")
end
commits # => ["fac3caf3", ...]
# Instance
client = PlaceOS::Frontends::Client.new
client.commits("backoffice") # => ["fac3caf3", ...]
client.loaded # => {"backoffice" => "fac3caf3"...}
client.close
Routes
GET ../frontends/v1/repositories/:id/commits: returns a list of commitsGET ../frontends/v1/repositories/: return the loaded frontends and their current commit
Contributing
See CONTRIBUTING.md.
Contributors
- Caspian Baska - creator and maintainer
- Tassja Kriek - contributor and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
3.0.0- Tagged
- Mar 15, 2023
- Commit
25e1379f8d35- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/PlaceOS/frontend-loader
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 68