release-script | release tools for npm and bower packages | Build Tool library
kandi X-RAY | release-script Summary
kandi X-RAY | release-script Summary
release tools for npm and bower packages
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of release-script
release-script Key Features
release-script Examples and Code Snippets
Community Discussions
Trending Discussions on release-script
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-script
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