mean-on-openshift icon indicating copy to clipboard operation
mean-on-openshift copied to clipboard

push mean packages to openshift ???

Open lleoooell opened this issue 9 years ago • 7 comments

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

lleoooell avatar May 12 '15 15:05 lleoooell

@shai-weinstein ?

zohar avatar May 12 '15 15:05 zohar

What i'm doing wrong?

lleoooell avatar May 12 '15 15:05 lleoooell

Try to add the package as dependency in mean.json On May 12, 2015 6:12 PM, "lleoooell" [email protected] wrote:

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

— Reply to this email directly or view it on GitHub https://github.com/linnovate/mean-on-openshift/issues/6.

liorkesos avatar May 12 '15 16:05 liorkesos

Thanks Lior for your answer (and your cool mean.io)

I come from angular-fullstack and meanjs and i'm trying to handle mean.io on openshift since two days.Sorry if i ask for noob questions.

Maybe i'm wrong but on the openshift dist of mean.io, there is no mean.json as in the linnovate/mean. So i think i have installed mean-admin and mean-tokens by adding them on the package.json like that: "mean-tokens": "linnovate/mean-tokens", "mean-admin": "linnovate/mean-admin" I can commit and push my package.json file and openshift seems to install and build my app correctly. But i still have an injection error on the app. Where can i inject the packages to make them working ? i'm a little bit lost because on my local dist, i don't have to do anything to make them work...

Thank you again for your support, i really want to use mean.io and its awesome features...

Best,

lleoooell avatar May 13 '15 06:05 lleoooell

Create a mean.json file In it write

{ "dependencies": { "mean-admin":"latest", "mean-translate":"latest" } }

On Wed, May 13, 2015 at 9:47 AM, lleoooell [email protected] wrote:

Thanks Lior for your answer (and your cool mean.io)

I come from angular-fullstack and meanjs and i'm trying to handle mean.io on openshift since two days.Sorry if i ask for noob questions.

Maybe i'm wrong but on the openshift dist of mean.io, there is no mean.json as in the linnovate/mean. So i think i have installed mean-admin and mean-tokens by adding them on the package.json like that: "mean-tokens": "linnovate/mean-tokens", "mean-admin": "linnovate/mean-admin" I can commit and push my package.json file and openshift seems to install and build my app correctly. But i still have an injection error on the app. Where can i inject the packages to make them working ? i'm a little bit lost because on my local dist, i don't have to do anything to make them work...

Thank you again for your support, i really want to use mean.io and its awesome features...

Best,

— Reply to this email directly or view it on GitHub https://github.com/linnovate/mean-on-openshift/issues/6#issuecomment-101537384 .

Lior Kesos - http://www.linnovate.net Linnovate - Community Infrastructure Care mail: [email protected] office: +972 722500881 cell: +972 524305252 skype: liorkesos

liorkesos avatar May 13 '15 06:05 liorkesos

Thanks for your quick answer !

I did but, same injection error with angular....(but progress because my push failed yesterday, we're close...) Do i have to register my new file mean.json somewhere or just let it on my root app dir ?

Something to do with the init.js ? Thanks,

lleoooell avatar May 13 '15 07:05 lleoooell

Hi again,

update : I think problem comes from the mean-admin package, if i just try to add on my package.json "mean-tokens":"linnovate/mean-tokens", it's ok on openshift, but if i add mean-admin package, i've got the injector error with angular...

Is it possible to have a compatibility problem between this openshift dist of meanio and the new mean-admin package?

lleoooell avatar May 13 '15 07:05 lleoooell