Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

bin/dev does not exist #209

Closed
edi9999 opened this issue Jan 30, 2024 · 3 comments
Closed

bin/dev does not exist #209

edi9999 opened this issue Jan 30, 2024 · 3 comments

Comments

@edi9999
Copy link

edi9999 commented Jan 30, 2024

Hi,

I'm a bit of a Rails newbie, I have used PHP and node.js over the years (4 years of node and 6 years of node.js), I'm now the maintainer of a software library called "https://docxtemplater.com/")

I'm playing with jumpstart and may be buying jumpstart pro in the upcoming weeks.

I've run following commands successfully :

sudo apt-get install libpq-dev postgresql libyaml-dev
gem install bundler --user
gem install rails --user
rails new myapp -d postgresql -m https://raw.githubusercontent.com/excid3/jumpstart/master/template.rb
cd myapp
bundle config set path vendor/cache
bundle install

I just reran bundle install and it gives me :

Updating files in vendor/cache
Bundle complete! 30 Gemfile dependencies, 120 gems now installed.
Bundled gems are installed into `./vendor/cache`

However, bin/dev doesnt' exist, here are the files that I have in bin :

$ ls bin/
docker-entrypoint  rails  rake  setup
$ rails --version
Rails 7.1.3
$ ruby --version
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux-gnu]

How am I supposed to start the app if bin/dev does't exist ?

@edi9999
Copy link
Author

edi9999 commented Jan 30, 2024

Ok, I have now fixed this issue (I installed rvm , then installed ruby 3.3.0)

I found out you need to use rails server instead, then I had connection error to psql, which I handled to fix.

Is there a way to have jumpstart run inside docker, so that I can test the application ?

@edi9999
Copy link
Author

edi9999 commented Jan 30, 2024

Going to try this :

https://github.com/nickjj/docker-rails-example

But not sure how I can then use jumpstart inside that docker image.

@excid3
Copy link
Owner

excid3 commented Jan 30, 2024

When the script runs, it will install a gem called jsbundling-rails that creates bin/dev

You can see it in the logs as:

rails new myapp -d postgresql -m https://raw.githubusercontent.com/excid3/jumpstart/master/template.rb
  # Lots of logs ...
    Add bin/dev to start foreman
      create      bin/dev

Repository owner locked and limited conversation to collaborators Jan 30, 2024
@excid3 excid3 converted this issue into discussion #210 Jan 30, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants