{"id":15603607,"url":"https://github.com/ghedamat/ember-cli-deploy-redis-cne","last_synced_at":"2025-03-29T13:40:25.187Z","repository":{"id":137589247,"uuid":"47306798","full_name":"ghedamat/ember-cli-deploy-redis-cne","owner":"ghedamat","description":"Our very own redis adapter for TheScene","archived":false,"fork":false,"pushed_at":"2015-12-03T04:05:32.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T14:25:07.841Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghedamat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-03T04:05:15.000Z","updated_at":"2021-01-12T18:10:16.000Z","dependencies_parsed_at":"2023-03-14T01:40:48.680Z","dependency_job_id":null,"html_url":"https://github.com/ghedamat/ember-cli-deploy-redis-cne","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghedamat%2Fember-cli-deploy-redis-cne","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghedamat%2Fember-cli-deploy-redis-cne/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghedamat%2Fember-cli-deploy-redis-cne/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghedamat%2Fember-cli-deploy-redis-cne/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghedamat","download_url":"https://codeload.github.com/ghedamat/ember-cli-deploy-redis-cne/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246193154,"owners_count":20738450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T03:04:16.186Z","updated_at":"2025-03-29T13:40:25.166Z","avatar_url":"https://github.com/ghedamat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ember-cli-deploy-redis-cne\n\nThis is a redis-adapter implementation to use [Redis](http://redis.io) with\n[ember-cli-deploy](https://github.com/ember-cli/ember-cli-deploy).\n\nThis was cloned and modified from [here](https://github.com/LevelbossMike/ember-deploy-redis).\n\nKind of a hack since the feature I'm emulating is partially coming in ember-cli-deploy v0.5.0. Basically, we parse the index file and only store the relevant file references instead of the WHOLE index. This is useful if your server adds a large amount of markup to each route, and you are only interested in the javascript/css sources.\n\nWARNING. Implementation is SPECIFIC to thescene-frontend. No real reason to change it.\n\n### Example:\n\nInstead of an index file, json gets stored like this:\n```json\n{\n  \"scripts\": {\n    \"vendor\":\"\u003cyour vendor script, I.E. /assets/vendor.js\u003e\",\n    \"app\":\"\u003cyour app script, I.E. /assets/\u003cyour app name\u003e.js\u003e\"\n  },\n  \"stylesheets\": {\n    \"vendor\":\"\u003cyour vendor script, I.E. /assets/vendor.js\u003e\",\n    \"app\":\"\u003cyour app script, I.E. /assets/\u003cyour app name\u003e.js\u003e\"\n  },\n  \"environment\": {\n    \"content\":\"\u003cthe content property of your environment meta tag\u003e\",\n    \"name\":\"\u003cyour-app-name\u003e/config/environment\"\n  }\n}\n```\n\nAnd then on the server:\n```erb\n\u003chead\u003e\n\n\u003c!-- `@cli_assets` points to the object above, fetched from redis --\u003e\n\u003c!-- Ember needs this meta tag to determine your apps environment --\u003e\n\u003cmeta name=\"\u003c%= @cli_assets['environment']['name'] %\u003e\" content=\"\u003c%= @cli_assets['environment']['content'] %\u003e\"\u003e\n\u003c!-- ...lots of other meta tags... --\u003e\n\n\u003clink rel=\"stylesheet\" href=\"\u003c%= @cli_assets['stylesheets']['vendor'] %\u003e\"\u003e\n\u003clink rel=\"stylesheet\" href=\"\u003c%= @cli_assets['stylesheets']['app'] %\u003e\"\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\n\u003cnoscript\u003e\n  \u003c!-- a bunch of stuff rendered for robots and stuff --\u003e\n\u003c/noscript\u003e\n\n\u003cscript id=\"vendor-script\" src=\"\u003c%= @cli_assets['scripts']['vendor'] %\u003e\"\u003e\u003c/script\u003e\n\u003cscript id=\"app-script\" src=\"\u003c%= @cli_assets['scripts']['app'] %\u003e\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghedamat%2Fember-cli-deploy-redis-cne","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghedamat%2Fember-cli-deploy-redis-cne","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghedamat%2Fember-cli-deploy-redis-cne/lists"}