I've set up a Ghost blog on OpenShift and found the process to be fairly straight forward. The site is up and running and I've even set up Jenkins for continuous integration when I need to push up changes.
I have yet to make any significant changes (just style updates thus far) because I can't figure out how to set up a test/development environment. How should I go about setting up an environment where I can test larger code changes before committing them to the main Git repo on OpenShift?
Is there a way to get the app running locally? I've tried just cd-ing to the app directory in my Terminal (on a Mac), but when I run npm start I get the following...
> openshift-ghost-quickstart@ start /path_to_my_app/dev/app
> node index
Unhandled rejection Error: Cannot find module '/path_to_my_app/dev/app/node_modules/ghost/node_modules/sqlite3/lib/binding/node-v11-darwin-x64/node_sqlite3.node'
(node_sqlite3.node does exist there, BTW)
What do I need to do to set it up so that I'm able to use the same codebase and repo, but see my changes locally, before actually committing them to the repo? Any help would be appreciated. Thanks heaps!