title: Openshift data dir access in NodeJS
body: <p>I've been trying to make my user uploaded date on OpenShift accessible publicly. However, I run into the issue that I can't seem to make it work in any way.</p>
  
  <p>I'm using NodeJS to upload the files to process.env.OPENSHIFT_DATA_DIR via express4 and fs.</p>
  
  <p>The files upload just fine. However, I've read plenty of messages saying that I should link the folders together using "ln -sf ../route/to/app-root/data/folder linked_folder". Which I've done, but I cannot still access them publicly.</p>
  
  <p>I honestly don't know what else should I do. Do the files automatically sync? Because that doesn't seem to be the case. Or should I be uploading to my repo folder and then OpenShift automatically links it to the data dir folder?</p>
  
  <p>My current exact setup when doing "ln" is:</p>
  
  <pre><code>01| cd app-root/repo/public/
  02| ln -sf ../../data/user-files user-files
  </code></pre>
  
  <p>Doing this to link the user-files folder in repo/public with the openshift data/user-files folder.</p>
  
  <p>So the thing is that I can't access the files in the front end by doing "ln" at all. No clue where to go from here.</p>