Question

How can i obtain a text file create by a running program on the droplet?

  • Posted on July 16, 2014
  • djpiemoAsked by djpiemo

Hello, and i’m sorry to ask this simple and obvious question, but I don’t know how to proceed.

I developed a simple application that parse stuff on different websites and generate a json file. Now, this file is now on the my droplet. How can i open that file using a normal http connection? ( i mean, how can i view that file on my broswer for example? )


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi!

You need to install a webserver like Apache or Nginx. You can install Apache with:

sudo apt-get install apache2

Then have your app generate the file in the directory /var/www/html It will now be available at http://your.ip.address/file.json