Giter Site home page Giter Site logo

mean-on-openshift's Issues

push mean packages to openshift ???

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...

Grunt Task issues when running locally.

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, mean install, and .gitignore

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).

What is the best practice for dependencies injection ?

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,

good practice to sync both local and remote

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 :

  1. I create my openshift cartridge with the mean-on-openshift pre-build.
  2. git clone my remote repo to my local computer.

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.

add rockMongo cartridge not working

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?

push mean packages to openshift ???

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...

Use grunt to start server locally

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.