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

Rename main.php to ruckus.php #63

Closed
salimane opened this issue Jan 16, 2013 · 6 comments
Closed

Rename main.php to ruckus.php #63

salimane opened this issue Jan 16, 2013 · 6 comments

Comments

@salimane
Copy link
Collaborator

I think It's better to give main.php some identification. When deploying it with some other scripts, main.php doesn't tell immediately what this script is for. Renaming it to :

1 - ruckus with the shebang #!/usr/bin/env php at the top of the script
2 - ruckus.php

I think ruckus is the best but ruckus.php is also ok, at least it's better than main.php

What do you think ?

@ruckus
Copy link
Owner

ruckus commented Jan 16, 2013

I'm ok with just ruckus as long as the shebang resolves correctly. Will this pose issues on other platforms? If not and if its safe enough then we can truncate:

$ php main.php db:migrate

to

$ ruckus db:migrate

Then I say go for it.

@salimane
Copy link
Collaborator Author

the shebang mostly will resolve correctly in *nix. Now, if you installed your php in some unusual place, well you know it :), so you have to run it with your custom location /my/custom/path/php ruckus db:migrate.
In windows you will always use php ruckus db:migrate

@salimane
Copy link
Collaborator Author

after working with ./ruckus db:migrate, i think it's better to use php ruckus.php db:migrate

@akDeveloper
Copy link

Using ./ruckus db:migrate you dont have to memorize the command. In console, you hit ./r [tab] and you get the command.

@mplx
Copy link

mplx commented Jan 18, 2013

I too prefer a change of main.php to something more talking. Using composer it's dropping a main.php in my ./vendor/bin while all other commands have usefuller names there.

Personally I'd go for ruckus.php - for commands you'd have to use more often you simply can set up an shell alias (i.e. alias ruckus='/path/to/bin/php /path/to/bin/ruckus.php', so 'ruckus db:migrate' works fine; ...or even something shorter like alias r='/path/to/bin/php /path/to/bin/ruckus.php db:migrate')

@salimane
Copy link
Collaborator Author

I finally went for ruckus.php in #70 . And as @mplx said, you can play with alias to get your own flavor ;)

@salimane salimane closed this as completed Feb 1, 2013
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

4 participants