Code help to get the app into production environment

  • 3
  • Question
  • Updated 3 years ago
  • Answered
Can someone please help me with the changes required in this project ( https://github.com/Rise-Vision/rise-vision-apps ) to upload it into a production environment?
Photo of nipun edara

nipun edara

  • 160 Points 100 badge 2x thumb

Posted 3 years ago

  • 3
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Hi Nipun,

Just to clarify, you would like to host the Rise Vision Apps project on your own server, and you need to know what you'll need to modify in order to accomplish that. Is that correct? I would like to get as much information on your specific situation as possible before relaying your questions to a developer.

Thanks!
Photo of nipun edara

nipun edara

  • 160 Points 100 badge 2x thumb
Hi Blake,

Thanks for your reply. Yes, that is indeed what I want to know.
Photo of nipun edara

nipun edara

  • 160 Points 100 badge 2x thumb
Hi Blake,

I have followed the instructions given here ( https://help.risevision.com/developer/getting-started/registration/clientId ) to obtain the client_id and also registered the app on the https://developer.risevision.com/apps/list website. I wanted to know the code changes required to get the Rise Vision Apps project running on a production server.

Thanks
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Nipun,

This is what I got from our developers.

You need to override the value in the config for your client id: angular.module("risevision.common.config")  .value("CLIENT_ID", "614513768474.apps.googleusercontent.com");
Then you need to install node, install npm, run npm install, install bower, run bower install, run gulp build, and gulp dev (for local server) or take the dist folder and deploy it to your server.
Photo of nipun edara

nipun edara

  • 160 Points 100 badge 2x thumb
Sorry Blake, can you please point me to the exact location of the file[s] where this config is present?

Thanks
Photo of nipun edara

nipun edara

  • 160 Points 100 badge 2x thumb
When I try to deploy it on the amazon ec2 instance, I am getting this weird error

ERROR [launcher]: PhantomJS failed 2 times (cannot start). Giving up.
[16:39:54] Error:  { [Error: karma exited with code 1]
  plugin: 'gulp-karma',
  showStack: false,
  message: 'karma exited with code 1' }
[16:39:54] 'test:unit' errored after 1.87 s
[16:39:54] Error in plugin 'gulp-karma'
karma exited with code 1
[16:39:54] 'test:unit' errored after 1.87 s
[16:39:54] Error in plugin 'gulp-karma'
karma exited with code 1

Any help is greatly appreciated. Thanks

Photo of jaydev kalivarapu

jaydev kalivarapu

  • 186 Points 100 badge 2x thumb
Blake, can you please explain the part "Then you need to install node, install npm, run npm install, install bower, run bower install, run gulp build, and gulp dev (for local server) or take the dist folder and deploy it to your server." little further ?

We need to just deploy the dist folder on the server and launch the script after installing necessary modules ?
(Edited)
Photo of nipun edara

nipun edara

  • 160 Points 100 badge 2x thumb
I got the phantomJs running. The site is up but still I find one error.
As soon as I click "Sign up with Google" and login using the google account, I get a pop-up asking to fill more details like the image below

But as soon as I enter the details and click on "Create Account", I get this error message and gets redirected to the home page again.



Am I missing something?

Thanks
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
Nipin, I see the Dev answered you in the Github issue you logged. Let us know if you continue to have issues.

Thanks!
Photo of Wendi Borden

Wendi Borden, Champion

  • 6,028 Points 5k badge 2x thumb
Just curious if you were able to get everything up and running on your servers? This might be something we want to look into at some point :)
Photo of jaydev kalivarapu

jaydev kalivarapu

  • 186 Points 100 badge 2x thumb
Hello Wendi, yes we are able to get a version up and running. There are few minor issues though on which we are still working on.
Photo of Ezequiel Conte

Ezequiel Conte, Employee

  • 874 Points 500 badge 2x thumb
Just as a reference, here is the discussion on GitHub: https://github.com/Rise-Vision/rise-vision-apps/issues/82

Cheers!