Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8119457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:48:36+00:00 2026-06-06T04:48:36+00:00

In rails, I upload and process image with paperclip + resque, It’s consume too

  • 0

In rails, I upload and process image with paperclip + resque, It’s consume too much memory and very slow. I want to try node.js to handle these stuff in background.

Is possible route rails and node.js both with the same port?

Some route deal with rails, some route to node.js.
for instance,

rails

/users/:user_id/albums(.:format)          
/users/:user_id/albums/new(.:format)      
/users/:user_id/albums/:id/edit(.:format)

node.js

/uploads

Thanks.

Solutions

POST /uploads to node.js(port 8080) to handle, the others rails.
Below is my nginx conf

  location = /uploads {
    proxy_pass http://127.0.0.1:8080/uploads;
  }

  location ^~ /assets/ {
    gzip_static on;
    expires max;
    add_header Cache-Control public;
  }

  try_files $uri/index.html $uri @unicorn;
  location @unicorn {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_pass http://unicorn;
  }

Thanks @Matthew Ratzloff

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:48:38+00:00Added an answer on June 6, 2026 at 4:48 am

    Sure it is. You could use a reverse proxy and forward select paths to your Node.js server and others to your Rails app.

    • httpd
    • nginx

    Now, is this a good idea? Well…

    A better solution is to continue creating jobs in Resque from Rails but use something like Coffee-Resque to actually process the jobs. That’s the route I would go.

    Hope that helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi i want to upload mulitiple file using rails 3 and paperclip please help
I am building a custom image upload form in Rails 3 (paperclip / carrierwave
I want to upload and then process a file in a Ruby on Rails
I'm saving an image upload using Paperclip in Rails, which is working fine. has_attached_file
Paperclip is a great upload plugin for Rails. Storing uploads on the local filesystem
I'm using SWFUpload and Paperclip on Rails 2.3.5 to upload images and videos. How
I want to upload a file(photo) from Flex to Rails and then send a
I've been using paperclip to upload and auto-resize photos in my Rails app, and
In my Rails app I would like to allow users to upload either image
I am trying to use the paperclip plugin in my rails app to upload

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.