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
#!/bin/bash
node app apostrophe:generation
node app apostrophe-migrations:migrate
Here is the Procfile
web: node app
release: ./scripts/heroku-release-tasks
One thing of note; If I look at the paths to my CSS and JS assets, it see something like this"
https://van-biema-partners.herokuapp.com/uploads/assets/ck0fmqn3i00050uuck7exy3v2/apos-minified/anon-ck0fmqn3i00050uuck7exy3v2.js
I'm not sure if that's correct, but maybe it is...
EDIT
Copy the above URL and remove out the '/uploads/assets/ck0fmqn3i00050uuck7exy3v2' part, I can see the CSS and JS. Not sure what's going on with the pathing, but that seems to be where the issue is, but I have no idea how to correct that. https://van-biema-partners.herokuapp.com/apos-minified/anon-ck0fmqn3i00050uuck7exy3v2.css