linnovate / mean-on-openshift Goto Github PK
View Code? Open in Web Editor NEWA tailored MEAN stack for deployment on Openshift
License: MIT License
A tailored MEAN stack for deployment on Openshift
License: MIT License
Hi,
Can somebody knows how to add mean packages (ex : mean-admin; tokens, translate, etc) to openshift?
I'm able to run my app locally (with pain^^) and these packages are wekk installed in my local dist. I was thinking that gitignore would not consider these packages as they are in node_modules/, so i add !node_modules/tokens to my gitignore files. but push fail...
I don't know how to do... locally, remotely (i try to run the command in the repo also but permission denied...)
Please, help, i'm desperate...
The issue with git clone of openshift instance running locally. The server runs fine. Once I add couple of additional angular modules and update assets.json, I try to build for production using grunt, I encounter errors. I am simply setting the ENV variable to production and running grunt. Perhaps there is a better way. See details of the problem below
Problem with running grunt for default task. It applies to both cssmin and uglify. I have installed load-grunt-tasks. When I run grunt default I get the error Task "cssmin" not found. This happened after I installed grunt-contrib-clean to get rid to "clear" Task not found. I do have a css file as well added to assets.json. Also I am running the openshift edition (https://github.com/linnovate/mean-on-openshift) and version details are
[email protected] /home/.......
└── [email protected]
Contents of my assets.json file
{
"core": {
"css": {
"bower_components/build/css/dist.min.css": [
"bower_components/angular-material/angular-material.css"
]
},
"js": {
"bower_components/build/js/dist.min.js": [
"bower_components/jquery/dist/jquery.min.js",
"bower_components/angular/angular.js",
"bower_components/angular-mocks/angular-mocks.js",
"bower_components/angular-cookies/angular-cookies.js",
"bower_components/angular-resource/angular-resource.js",
"bower_components/angular-ui-router/release/angular-ui-router.js",
"bower_components/angular-aria/angular-aria.js",
"bower_components/angular-animate/angular-animate.js",
"bower_components/angular-material/angular-material.js"
]
}
}
}
Anyways I tried with the mean project locally and that seems to have shifted to using gulp , but that too is running into module dependency issues.
mean-admin is installed under node_modules
. You cannot mean install mean-admin
from cli in shell, because of file ownership and rights to node_modules
. If you pull and mean install mean-admin
, it places it in node_modules
, which is listed in .gitignore
. grunt does not seem to work (at least not the way it does in linnovate/mean
) and node server seems to hang, so after mean install mean-admin
, you cannot easily verify that it has indeed worked correctly locally. Pushing states that no changes have been made, because they are being ignored. Unless you go looking and no basically what you're looking for, I can see many people not understanding this, not bothering to ask in gitter, and giving up after an hour.
This is not to say this was extremely difficult for people contributing to these projects to do, but rather that it's unnecessarily difficult and complicated for anyone to do and could, in the case of many uninitiated developers, prevent them from working with mean.io altogether. mean-admin should be easy to install or come mean.io by default (I suggest by default).
Hi,
I want to install ngDialog via bower, what is the best practice for injecting it in production, i'm a little bit lost ?
it works on my local computer with a "node sever", but when i push on openshift, i have this error :
Error: [$injector:modulerr] Failed to instantiate module ngDialog due to:
Error: [$injector:nomod] Module 'ngDialog' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
_i have register required css/js files in my assets.json
_i try by injecting 'ngDialog' in my default modules in init.js
_i try to inject it in my user module app.js ; MeanUser.angularDependencies(['ngDialog']);
_i try to inject it in my user module users.js : angular.module('mean.users', ['ngDialog']);
_and also in my controller...
I try all these at the same time, and also a few combinations. Most of are working locally. but none on openshift...
so, how you are handle your injections with this dist of meanio ?
Thanks for your help, your project rocks !
best,
Hi again,
I'm new with openshift and i'm trying to discover this awesome mean stack build.
i've got a problem who block me in my workflow and i would like to solve this before i can think working with this stack in production.
I can't figure how to sync with best practices my local and remote dist on openshift.
I explain :
From here, i want to add 3 packages (admin, translate, tokens) and create 2 custom (mypackage1, mypackage2).
If i try from my local, everything works fine with a node server cmd. but if i push to openshift, packages are not registered (i have solved this for the "officials" one by adding them on my package.json, but no way to figure out how to register my 2 customs...
So a start another project from scratch and run the install command on the openshift ssh shell :
_from /app-root/repo dir, i run "mean install mean-admin, mean install mean-translate, mean-install mean-tokens, mean package mypackage1, mean package mypackage2 and when i restart my gear, everything is ok and works fine. i've got all my packages admin in place and i can see my menu example links for mypackage1 and 2.
Now i would like to custom mypackage1. So i clone my repo in my local using git clone, and i don't know why but none of my packages are now register and there is no mypackage1 or 2 in my local packages/ folder...the app cloned seems to be the one from the beginning...
Question ?
How can get my custom packages to local when i git clone this new repo ?
maybe i miss something like "git add/commit/push" in the new dist from openshit to update the src filesystem before i can run a git clone in local ?
Thanks in advance for your help.
You got only one out-dated dependency, and it's npm.
Thank you for this repo!
after deploy to the openshift. I tried to add the rockMongo cartridge to view the data in mongoDB. But I can't open the connection url since the MEAN stack routing defined the rules to prevent to show the connection console. Anyway to make this one work?
Hi,
Can somebody knows how to add mean packages (ex : mean-admin; tokens, translate, etc) to openshift?
I'm able to run my app locally (with pain^^) and these packages are well installed in my local dist. I was thinking that gitignore would not consider these packages as they are in node_modules/, so i add !node_modules/tokens to my gitignore files. but push fail...
I don't know how to do... locally, remotely (i try to run the command in the repo also but permission denied...)
Please, help, i'm desperate...
Hi, I'm looking for a way to use grunt to start the server like mentioned in the documentation :
$ grunt
Unfortunately I have this.
grunt-cli: The grunt command line interface. (v0.1.13)
Fatal error: Unable to find local grunt.
So I checked the package.json file and I didn't see grunt-cli in dependencies... but just in script.
"start": "node node_modules/grunt-cli/bin/grunt",
"test": "node node_modules/grunt-cli/bin/grunt test",
What I have to do ? If I install locally grunt-cli
I always have the error. If I install grunt
too, I have an other error...
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'load-grunt-tasks'
Did I miss something ?
Thank you.
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.