bin/dev: 8: exec: foreman: not found - ruby-on-rails

Hello I am currently following a tutorial in order to connect react to my rails app that uses https://github.com/rails/jsbundling-rails and went with esbuild, however when I run bin/dev in my terminal I get the above error any help is appreciated as this is my first time trying to use react along with a rails app

You need to install foreman gem. You can install it in the terminal with this command:
gem install foreman

Related

Not able install & setup tailwindcss-rails in ruby on rails app

I'm trying to use tailwind in my rails project, but I'm not able to install & run it on my system. It seems like there is some issue with the x86_64-linux platform as I'm using WSL to build my ruby on rails apps.
In my previous projects, I've also tried installing tailwindcss-rails separately following the official guide: https://tailwindcss.com/docs/guides/ruby-on-rails, it didn't work and was throwing the same error.
Can anyone of you please provide a workaround or any other possible fix?
Here's the command which was used for installation:
rails new task-management-app --database=postgresql --css=tailwind
Here's the log & error which was generated:
Add default config/tailwindcss.config.js
create config/tailwind.config.js
Add default app/assets/stylesheets/application.tailwind.css
create app/assets/stylesheets/application.tailwind.css
Add default Procfile.dev
create Procfile.dev
Ensure foreman is installed
run gem install foreman from "."
Successfully installed foreman-0.87.2
Parsing documentation for foreman-0.87.2
Done installing documentation for foreman after 1 seconds
1 gem installed
Add bin/dev to start foreman
create bin/dev
Compile initial Tailwind build
run rails tailwindcss:build from "."
["/home/rishabh/.rvm/gems/ruby-3.0.1/gems/tailwindcss-rails-2.0.21-x86_64-linux/exe/x86_64-linux/tailwindcss", "-i", "/mnt/d/Programming/Web/Rails/practice/practice/task-management-app/app/assets/stylesheets/application.tailwind.css", "-o", "/mnt/d/Programming/Web/Rails/practice/practice/task-management-app/app/assets/builds/tailwind.css", "-c", "/mnt/d/Programming/Web/Rails/practice/practice/task-management-app/config/tailwind.config.js", "--minify"]
/home/rishabh/.rvm/gems/ruby-3.0.1/gems/tailwindcss-rails-2.0.21-x86_64-linux/exe/x86_64-linux/tailwindcss: 1: ELF: not found
/home/rishabh/.rvm/gems/ruby-3.0.1/gems/tailwindcss-rails-2.0.21-x86_64-linux/exe/x86_64-linux/tailwindcss: 4: Syntax error: word unexpected (expecting ")")
rails aborted!
Command failed with exit 2: /home/rishabh/.rvm/gems/ruby-3.0.1/gems/tailwindcss-rails-2.0.21-x86_64-linux/exe/x86_64-linux/tailwindcss
Tasks: TOP => tailwindcss:build
(See full trace by running task with --trace)
The quickest way to start using Tailwind CSS in your Rails project is to use Tailwind CSS for Rails by running rails new my-app --css tailwind. This will automatically configure your Tailwind setup based on the official Rails example. If you'd like to configure Tailwind manually, continue with the rest of this guide.follow the steps properly.

Hi guys. What could cause a rails app not starting in the local server

I just created a new Rails app and I have tried to start the app using the command 'rails server but the app is not starting.
(https://i.stack.imgur.com/eQAvz.png)
I have also tried to run gem install tzinfo-data, Run bundle update and budle install but its still not working. Based on what i saw from those who ran into similar problem, the tzinfo gem is the one that might need to be installed on its own but it didn't work for me.

Foreman: Command "start" is not defined

I'm getting the above error when trying to run foreman start from command line.
I installed the gem:
gem install foreman
Then defined a procfile. Why am I getting this error? When I run foreman list, I get:
Available commands:
build Commission Forman to build a new Laravel app for you
help Displays help for a command
list Lists commands
scaffold Generate a scaffolded Foreman template file
self-update Updates the application.
https://github.com/Indatus/foreman you use different foreman :)
https://github.com/ddollar/foreman it's what you need

I can't start my rails server

I am trying to run my rails server in new created app, but everytime I wrote
"rails server"
it tells me that i need gem named
"byebug"
and when i try to install this gem this is result: imgur.com
I had the rails server before but I reinstalled my pc and now I can't run it. I have 64bit windows 10.
I tried reinstall every rails spiece include mysql and nothing have changed.
Can anyone help me please?
You error messages states "run bundle install to install missing gems". On your prompt type "bundle install" and hit enter. This should work.
Since you are using Windows for Ruby on Rails development. You need to properly configure all the dependencies as the error shows.
Install or update your development kit, that serve as the building tools in Windows.
please follow the instructions here:
https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

Rails3 Console Command not working

I was able to run rails console in a rails directory fine, however I ran into a problem running rails console --sandbox where I was getting an error like this:
no such file to load -- readline (LoadError)
After running this command: sudo apt-get install libncurses5-dev libreadline5-dev
(found here http://pranshuarya.com/jaal/Development/rails-3-error-require-no-such-file-to-load-readline-loaderror.html)
I now receive the following error when running either rails console or rails console --sandbox:
Could not find mail-2.2.16 in any of the sources
I am running Ubuntu 10.10, Ruby 1.9.2 and Rails 3
Any ideas?
I think that you could be having some gem in your gemfile but you did not run bundle install to install it. Please check that out.

Resources