fission-codes / heroku-ipfs-ghost Goto Github PK
View Code? Open in Web Editor NEWThe Ghost blog system upgraded with Heroku deploys & IPFS support.
License: MIT License
The Ghost blog system upgraded with Heroku deploys & IPFS support.
License: MIT License
Update README with the following:
The app.json file currently references env
variables for setup. This can be simplified/streamlined by adding Fission's Heroku addon like so:
{
"addons": [
"jawsdb",
"mailgun",
{
"plan": "interplanetary-fission:test"
}
],
}
Newest version of default theme should be included and checked-in.
Have no idea if this will just work by updating package.json and/or what the DB migration is.
Hi - the Heroku deploy button wasn't working for me so I hacked it and got a bit further along by using this link:
I got the the attached screen which was looking more promising, however the build failed at the Pruning devDependencies
step.
Any help resolving this greatly appreciated thanks!
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NODE_ENV=production
NODE_MODULES_CACHE=true
NODE_VERBOSE=false
-----> Installing binaries
engines.node (package.json): 12.x
engines.npm (package.json): unspecified (use default)
Resolving node version 12.x...
Downloading and installing node 12.18.4...
Using default npm version: 6.14.6
-----> Installing dependencies
Installing node modules
> [email protected] install /tmp/build_e652f5ec_/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js
make: Entering directory '/tmp/build_e652f5ec_/node_modules/dtrace-provider/build'
TOUCH Release/obj.target/DTraceProviderStub.stamp
make: Leaving directory '/tmp/build_e652f5ec_/node_modules/dtrace-provider/build'
> [email protected] install /tmp/build_e652f5ec_/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
[sqlite3] Success: "/tmp/build_e652f5ec_/node_modules/sqlite3/lib/binding/node-v72-linux-x64/node_sqlite3.node" is installed via remote
> [email protected] install /tmp/build_e652f5ec_/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.8.1/libvips-8.8.1-linux-x64.tar.gz
> [email protected] postinstall /tmp/build_e652f5ec_/node_modules/core-js
> node postinstall || echo "ignore"
> [email protected] postinstall /tmp/build_e652f5ec_/node_modules/jsonpath
> node lib/aesprim.js > generated/aesprim-browser.js
added 1082 packages in 22.923s
-----> Build
-----> Caching build
- node_modules
-----> Pruning devDependencies
npm ERR! code 1
npm ERR! Command failed: git checkout beta
npm ERR! error: pathspec 'beta' did not match any file(s) known to git.
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.fVzOl/_logs/2020-09-21T06_11_13_369Z-debug.log
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
If you're stuck, please submit a ticket so we can help:
https://help.heroku.com/
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed```
For this to work on Heroku, casper (or whatever theme you're using) needs to get checked in directly to the themes folder.
https://github.com/fission-suite/heroku-ipfs-ghost/tree/master/content/themes
Delete the casper symlink, and check in the theme directly into this folder.
While troubleshooting storage adapter issues, I encountered a comment from the Ghost staff indicating dropped support for installing Ghost via npm. It's unknown how this might impact this project at this time.
Unknown
May have development/deployment implications
Unknown
Additional context
Via: https://forum.ghost.org/t/ghost-npm-module-contentpath-for-storage-adaptors/6288/9
A recent PR highlighted the lack of coding style guidelines for this project.
In addition to adding a linter, a popular solution for JS projects is to use Prettier which helps do all the grunt work: https://prettier.io/docs/en/why-prettier.html
This issue could also apply to other repos, but this might be a good place to have the conversation.
According to documentation:
On each deployment, the Heroku Node/npm build process will auto-upgrade Ghost to the newest 3.x version. To prevent this behavior, use npm 5+ (or yarn) to create a lockfile.
During upgrades, package lock was added and package files were changed from ^
(minor) to ~
(patch) based on a related conversation. These will need to be reverted to allow for the described functionality.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.