Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Procfile option doesn't work #764

Open
EdOverride opened this issue May 14, 2020 · 1 comment
Open

Custom Procfile option doesn't work #764

EdOverride opened this issue May 14, 2020 · 1 comment

Comments

@EdOverride
Copy link

EdOverride commented May 14, 2020

In foreman docs (foreman --help) it's mentioned one can use -f option to specify custom Procfile, however that doesn't seem to work.

>> foreman --help
Commands:
  foreman check                   # Validate your application's Procfile
  foreman export FORMAT LOCATION  # Export the application to another process management format
  foreman help [COMMAND]          # Describe available commands or one specific command
  foreman run COMMAND [ARGS...]   # Run a command using your application's environment
  foreman start [PROCESS]         # Start the application (or a specific PROCESS)
  foreman version                 # Display Foreman gem version

Options:
  -f, [--procfile=PROCFILE]  # Default: Procfile
  -d, [--root=ROOT]          # Default: Procfile directory

Procfile.dev

web: puma -p 3000

Command used:

foreman start -f Procfile.dev

Result:

Could not find command "_f".

Tried using version 0.87.1 and this git's master branch. Both have this issue.

@paulleoniuk
Copy link

Maaan @EdOverride
I was too lucky to get stuck in the same shit 🤣

Probably the problem was the same as mine, I missed start word in the command
So instead of running
foreman -f Procfile.dev
Use
foreman start -f Procfile.dev

And it's better to replace in your file the line
web: puma -p 3000
with
web: bin/rails server -p 3000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants