Processing
 

RoR in Windows not working for pre-existing app built with RoR in linux

27/07/2016 00:27#1

RebRy

Member

Joined at: 8 months ago

Post: 1

Thank: 0

Thanked: 0

I've installed Ruby on Rails using RailsInstaller and also postgresql in Windows 8. I'm trying to run rails server using files for a pre existing app but I'm getting the error 'Worker mode not supported on JRuby or Windows'.

In my config/puma.rb file i've set workers to 0, then get an error about daemon mode not supported on windows. basically each time i change something i get more errors.

I've fixed up environment variables, gems, etc (like in other posts) such as this Cannot install Puma gem on Ruby on Rails. there any hope of running a pre-existing RoR app built in linux on a windows machine?

When I run rails server for the RoR 'blog' example it works fine, so I know that RoR is definitely working in windows!

This is my -'de-identified' config/puma.rb file. Is it because in windows I have no /var/app folder?? I've played around with directories etc to no avail.

` #!/usr/bin/env puma  # start puma with: # RAILS_ENV=production bundle exec puma -C ./config/puma.rb  workers 0 theident = 'nameofthing' application_path =  '/var/app/'+ theident + '.address.com.au/current' railsenv = 'production' directory application_path environment railsenv daemonize false pidfile "#{application_path}/tmp/pids/puma-#{railsenv}.pid" state_path "#{application_path}/tmp/pids/puma-#{railsenv}.state" stdout_redirect"#{application_path}/log/puma-#{theident}.log" threads 0, 16 bind "unix:///var/run/puma/" + theident + "_app.sock" ` 

I have changed those directories to the current path and now running 'rails server' starts going , but localhost:3000 is a page not working. I am getting errors around SIGUSR1 not working , SIGUSR2 not working ,etc

Similar articles

Window Registry create key not working in java

6 months ago - Reply: 1 - Views: 76

Metro App crash on Windows 10

7 months ago - Reply: 2 - Views: 116

.dll file missing after php upgrade

7 months ago - Reply: 1 - Views: 55

Notepad++ launch multiple HTML within browser

7 months ago - Reply: 0 - Views: 3

Access 2003 freezing

7 months ago - Reply: 0 - Views: 2

Icon Handler Shell Extension not called

7 months ago - Reply: 1 - Views: 24

Border color of combox does not change - Windows 8

7 months ago - Reply: 3 - Views: 140

VB.NET error DatagridViewCellValueChanged Windows 8

8 months ago - Reply: 1 - Views: 40

I made a mistake when installing Hyper-V [on hold]

8 months ago - Reply: 0 - Views: 8

vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re