release-scripts | scripts used for generating releases.json | JSON Processing library
kandi X-RAY | release-scripts Summary
kandi X-RAY | release-scripts Summary
The scripts in the repository are used to generate the releases.json file used in the USB-SD-Creator and in the manual update feature present in LibreELEC 8.0+. The script generates a json formatted output with the filenames, file sizes, and sha256 sums. For the full output see,
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Update all files
- Update source files
- Reads old json file
- Get details for training
- Get train major minor minor value
- Calculate the sha256 hash of a file
- A generator that yields blocksize the file
- Computes the hash of the given iterable of blocksiter
- Write the update_json to file
release-scripts Key Features
release-scripts Examples and Code Snippets
Community Discussions
Trending Discussions on release-scripts
QUESTION
I'm following the HOWTO on deploying to Heroku: https://docs.apostrophecms.org/apostrophe/tutorials/howtos/deploying-apostrophe-in-the-cloud-with-heroku
I'm deviating from the HOWTO a bit since I'm using Heroku's mLab add-on to handle my Mongo. Also, I skipped the S3 set up for now, since I just want to get the thing up a running. I'm not sure if that's super important to the assets getting delievered appropriately.
I've completed the following from the HOWTO:
- Created a project in Heroku
- Added it to my git repo as
heroku
as a remote - Added mLab add-on and created a database and add the environment var pointing to that database uri.
- Added environment vars for
APOS_BUNDLE=1
andAPOS_MINIFY=1
- Added the heroku-release-scripts executable in the /scripts directory as well as the Procfile.
Here is the code from my ./scripts/heroku-release-scripts
ANSWER
Answered 2019-Sep-11 at 22:28The issue is that the new, simplified APOS_BUNDLE=1
functionality strictly requires that you have a persistent uploadfs back end — in other words, it requires that you set up S3, even to be successful with asset URLs.
Since this is in any case required for media uploads to work, I've fixed the documentation you read to address this requirement. I also removed a confusing leftover section about the --sync-to-uploadfs
option, which is not required anymore to copy assets to S3; that is part of what led the confusing impression that S3 might not be mandatory.
(Strictly speaking it does not have to be Amazon S3. In addition to supporting alternative S3 implementations, Apostrophe's uploadfs module also supports Azure blob storage and Google's cloud storage. The uploadfs documentation has more on that topic. What is truly a requirement is somewhere other than the heroku temporary filesystem to store things, because those are not persistent, nor are the same files visible to all dynos.)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install release-scripts
You can use release-scripts like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page