Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
0 answers
32 views

Windows Subsystem For Linux forgets everything

I am stuck on a Windows machine for work, but I work with Ruby on Rails, so everything I do has to be done through the Windows Subsystem for Linux. I did finally get it set up and working, but then I ...
Onikoroshi's user avatar
0 votes
0 answers
44 views

How to run ./bin/dev for Ruby on Rails from WSL

I cloned a repository which uses /bin/dev to update the changes in the code (tailwind css) dynamically without the need of asssets:recompilation. As I am using Windows, in order to run ./bin/dev, I ...
Ansari Junaid's user avatar
0 votes
0 answers
74 views

Browser cannot get cookies from Rails App on wsl2

My Application is created by RoR on Ubuntu 22.04 on wsl2. I can access it from browser on windows, but cannot login because browser doesn't store cookies. My app marked cookies as lax, and when I ...
yuki's user avatar
  • 1
0 votes
0 answers
39 views

Error when locally launching rails app: "Permission denied @ dir_s_mkdir - /db"

I'm encountering an irritatingly persistent error in my Rails application. Here's the highlighted log that pops when I open the link for my app after running rails server: Permission denied @ ...
Aertyaga's user avatar
0 votes
0 answers
58 views

Unable to connect postgres database from rails application running inside WSL Ubuntu

I am running rail application inside WSL Ubuntu (20.04). I have postgres server running inside docker on host machine. Now I want my rails application to connect to the postgres database. I have ...
sar's user avatar
  • 1,277
0 votes
1 answer
360 views

wsl-2 bash: /mnt/c/ruby26-x64/bin/rails: ruby: bad interpreter: No such file or directory

I've been happily running rails projects inside WSL2 for a couple of years, then soon after upgrading to Rails 6.1.7 I couldn't run Rails at all, nor Bundler, nor ruby, nor gem. The command line error ...
KeithP's user avatar
  • 1,813
1 vote
1 answer
772 views

Why doesn't Nginx reverse proxy on WSL2 see Rails app in Docker Container using hostname?

I've got several Rails websites running in Docker dev containers. Docker is running in WSL (Ubuntu 20.04) on Windows 11. Nginx is running in Ubuntu as a reverse proxy, IIS is turned off in Windows. ...
Adrian's user avatar
  • 21
0 votes
1 answer
162 views

Rails server claims "No such file - ["config/database.yml"]" even though it is there

After developing in Rails on a virtual Linux machine, I just recently installed Windows Subsystem for Linux. Before the Christmas weekend, it was working just fine, but as of this morning, when I try ...
elarue's user avatar
  • 1
0 votes
1 answer
740 views

Every time I try to install Ruby 3.1.2 via Ubuntu for WSL, my computer crashes

Every time I try to install Ruby 3.1.2 using RBENV and the Ubuntu app for windows, my computer crashes. When I look carefully, it appears to be some type of 'kernel error'. What's going on?
Monroe Mann's user avatar
2 votes
2 answers
1k views

RuboCop 'Layout/EndOfLine: Carriage return character detected' WSL2

I'm currently developing for a Ruby on Rails application. I am on a windows machine, using ubuntu through WSL. We have rubocop setup to track formatting on git pushes, and I always run into the same ...
0lafe's user avatar
  • 43
0 votes
1 answer
991 views

Rails asset pipeline not automatically compiling with esbuild only on WSL

I have a rails 6 app using esbuild to bundle all my js files to app/assets/build. I have to manually run rails assets:precompile in order for the changes that are in app/assets/build to actually be ...
NomNomCameron's user avatar
0 votes
1 answer
1k views

ruby on rails "warning: shebang line ending with \r may cause problems" still occurs after tried to fixed it

I have cloned one of the repository that apply chatwoot github https://github.com/chatwoot/chatwoot, then I encountered with this warning when execute "rails s" on windows wsl (ubuntu): /...
gtltc's user avatar
  • 15
6 votes
1 answer
1k views

The debug gem's binding.break creates break point but no console prompt

I have a Rails 7 application using gem "debug", platforms: %i[ mri mingw x64_mingw ] for debugging. I am also using WSL2 and Windows Terminal on Windows 11 for my development environment in ...
daveomcd's user avatar
  • 6,525
0 votes
0 answers
111 views

connection to server on socket failed postgres ubuntu

I'm trying to run postgres on ubuntu and it shows the following error psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory Is ...
Enoma Victor's user avatar
1 vote
1 answer
1k views

Ruby on Rails error after 'rails new' command?

Hi I was trying to create program with Ruby on Rails but when I entered rails new command it gave me following output: [DEPRECATED] `Bundler.with_clean_env` has been deprecated in favor of `Bundler....
Leviathan's user avatar

15 30 50 per page
1
2 3 4 5 6