Hi there,

I downloaded the Open Foris app package and it is a great application you have made. Hats off. I made it work on my localhost. But I am facing problems while I'm trying to host the app on cloud. I tried to host the collect app on cloud server(on Heroku) by cloning from Open Foris git repo(https://github.com/openforis/collect.git), but kept on getting various issues and was unable to make the app work online. Can you guide me as simply as possible on how can I host collect and other open foris apps on a cloud server best is targeted for heroku.? P.S. I'm focusing on heroku because basic plan comes for free.

Thank You, Sushil.

asked 12 Aug '16, 21:19

sushil74432's gravatar image

sushil74432
75814
accept rate: 0%


Hi Sushil,
Sorry but we don't have any experience with Heroku and it seems more suitable for mobile applications. Collect is a web application made to run inside an application server (like Tomcat or Jetty). What you can do is to try to deploy directly the war file of the latest release of Collect. You can download it from here.
The best solution I suggest you is to buy a VPS (you can find very cheap ones for around 3$/month) and install Tomcat, then deploy the war file there.
Why do you want to install Collect in a remote server? Are you planning to use it with several users? If the number of users is not that big (10 users for example), you can even use a normal laptop/desktop computer and install Collect there, then connect it to a LAN and access it from other computers. With this configuration, the data you collect will be stored in the computer you configured as a server and will not be accessible from outside your local area network.
Please let us know if we can help you to set up your data collection environment.
Thanks,
Open Foris Team

permanent link

answered 15 Aug '16, 11:46

Stefano%20%28OF%29's gravatar image

Stefano (OF) ♦♦
4.8k119
accept rate: 19%

@stefano Thanks for the suggestion. I would have done that way but I need to make it accessible to large area. So LAN isn't possibility for now.

(15 Aug '16, 14:41) sushil74432 sushil74432's gravatar image

@stefano

I now switched to AWS. I created an UBUNTU instance there,setup everything and installed Tomcat7. In the webapps folder of tomcat I downloaded the .war file from link you had provided. Restarted my tomcat, but nothing happened (blank screen appears). I also tried all other possibilities I knew of. This is the public IP for the site. http://52.42.146.254:8080/

Is there anything I am missing? Thank You.

permanent link

answered 15 Aug '16, 14:32

sushil74432's gravatar image

sushil74432
75814
accept rate: 0%

Yes, there is something else missing. You need to define the Collect application context file. This file contains the database connection parameters. You can download a template of that file here. Modify the file with your settings and then put the file inside this path: TOMCAT_ROOT_FOLDER/conf/Catalina/localhost
Then restart your Tomcat service.
Thanks,
Open Foris Team

permanent link

answered 15 Aug '16, 14:41

Stefano%20%28OF%29's gravatar image

Stefano (OF) ♦♦
4.8k119
accept rate: 19%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×494

question asked: 12 Aug '16, 21:19

question was seen: 5,064 times

last updated: 15 Aug '16, 14:41