Forem Creators and Builders 🌱

Discussion on: bin/rails s -e production -p 3000 -b 0.0.0.0

Collapse
 
9comindia profile image
9comindia • Edited

yes, I am not using Forem selfhost, I am using the github.com/forem/forem.git code to deploy on a ubuntu cloud VM (other than aws, gcp and digitalocean) in production. [Not using the Dockers, plain local installation on the cloud VM instance]

Till now, I am able to do are:

  1. Able to install forem instance and launch the forem instance in development environment.
  2. Configured nginx as reverse proxy to the custom domain name.
  3. Posts, comments, hearts, saves, etc are working fine.
  4. emails are working fine.

5 Image upload is happening, but the storage is happening on the VM locally.

Major issue pending:

  1. Image upload in not happening on aws S3 or cloudinary, even though the credentials are set in the .env file.

I am suspecting this issue is because my rails server is running in development mode instead of the production mode.

{Note: I have already set Rails, Node and Rack environments to production in the .env file. But the Rails server is taking only the development mode.]

So could you please help me on steps how do I change my development environment to production environment? thank you.