I’m trying to deploy a web application on Dreamhost. It’s the first time I’m doing a manual deploy; as I’m used to deploying on Heroku instead.

Kind of surprised how much Heroku handholds the deployment process; so deploying the backend on Dream has been quite a challenge (SSH, installing Node, syncing DB with phpMyAdmin).

So Dreamhost uses Phusion Passenger to run Node JS applications.

Their requirement is that the entry point is app.js, and this needs to be configured with a .htaccess file.

I’ve never written a .htaccess file before, and I can’t seem to find a good tutorial for it.

I was wondering if anyone can shed some light on how to start, or what to write. My FTP folder structure is below, and here is also a screenshot of instruction from their documentation. Where should the .htaccess file go?

Thanks in advance

mywebsite.com (folder)
  public (folder)
r/webdev - Writing a .htaccess file so Phusion Passenger can find the entry point of my application

Source link

Write A Comment