Closed shebatech closed 7 years ago
Thanks for opening an issue. It sounds like you're missing your dev dependencies. "Running in production" is documented in the readme: https://github.com/jedireza/aqua#running-in-production
Thank you for your prompt response, I appreciate it.
I have setup the env variables into Openshift and I can confirm they're setup using the following command which returns them
ShebaTechs-MacBook-Air:server shebatech$ rhc env list dev NODE_ENV=production NPM_CONFIG_PRODUCTION=false
I cleared my nodejs.log file in Openshift and run git push to trigger the application rebuild process. Unfortunately, I am still getting the 503 error when I view the page and the logs are still showing that it cannot find the babel-core/register module.
I am wondering and I will try it in a bit if I move all devDependencies from package.json to dependencies to brute force the installation process of these packages required.
The instructions in the README are for Heroku. You'll have to lookup the solution for Openshift or merge devDependencies
into dependencies
.
Merged dependencies and now it stopped complaining about babel-core/register, but it's complaining about something else. Will have to give Heroku a shot, maybe it'll simplify things in the long run.
fs.js:558 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ Error: EACCES: permission denied, open '/var/lib/openshift/5875382989f5cf0d60000182/.babel.json' at Object.fs.openSync (fs.js:558:18) at Object.fs.writeFileSync (fs.js:1223:33) at save (/var/lib/openshift/5875382989f5cf0d60000182/app-root/runtime/repo/node_modules/babel-register/lib/cache.js:45:16) at _combinedTickCallback (internal/process/next_tick.js:67:7) at process._tickCallback (internal/process/next_tick.js:98:9) at Module.runMain (module.js:607:11) at run (bootstrap_node.js:420:7) at startup (bootstrap_node.js:139:9) at bootstrap_node.js:535:3
Thanks again!
Just an update, deployment of Aqua on Heroku was super smooth! Now I'll attempt to integrate MaterializeCSS to it instead of bootstrap.
Hi Jed,
I used your previous framework "drywall" to implement my App, and now I though I would do a redesign and noticed that you have published "aqua", so I though why not, I'll redesign the whole App again and use aqua instead.
Dealing with Openshift is kind of a pain as there is lots that can go wrong, I have got my App to successfully deploy on Openshift after few tweaks to package.json file, mainly the start script and main parameters which I'll list below.
I also tweaked the server environments to meet Openshift's IP and port. After getting the deployment successful message from Openshift, I get a 503 Error "service temporarily unavailable", I used ssh to login into my openshift gear to look up the server log errors and I am getting this one
I attempted to install babel-register, but that didnt work. Another thing that I changed in package.json is bycrpt to bycrptjs, it was throwing some errors about bycrpt which I dont think has anything to do with babel-core/register error.
*note: works like a charm locally on macosx latest version.
Any help to make this work would be greatly appreciated. Meanwhile, I'll keep trying different things.