Skip to content

created rake restart task#18965

Merged
eileencodes merged 1 commit into
rails:masterfrom
hjoo:rake_restart
Feb 28, 2015
Merged

created rake restart task#18965
eileencodes merged 1 commit into
rails:masterfrom
hjoo:rake_restart

Conversation

@hjoo

@hjoo hjoo commented Feb 17, 2015

Copy link
Copy Markdown
Contributor

Created rake restart task to address issue #18876. Was uncertain if spring restart required if tmp/restart.txt will be on Spring watch list (referencing #18874).

@eileencodes

Copy link
Copy Markdown
Member

@hjoo I think you can add some tests for this rake task in railties/test/application/rake/ or railties/test/commands/ - honestly not sure which is best. Take a look at what kind of commands are there and base your decision on that.

@hjoo hjoo force-pushed the rake_restart branch 2 times, most recently from 205882c to 41f5c80 Compare February 26, 2015 17:10

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hjoo can you remove this extra line. Otherwise I think this is looking good 😄

Fixes rails#18876. Rake restart touches `tmp/restart.txt` to restart
application on next request. Updated tests and documentation
accordingly.
eileencodes added a commit that referenced this pull request Feb 28, 2015
@eileencodes eileencodes merged commit 58aecb0 into rails:master Feb 28, 2015
@hundredwatt

Copy link
Copy Markdown
Contributor

Does this task need to depend on the :environment task? Seems like that could be dropped (ie task :restart do) for faster execution.

@rafaelfranca

Copy link
Copy Markdown
Member

Yes, it can be dropped

@eileencodes

Copy link
Copy Markdown
Member

@hjoo can you send a new PR that just does task :restart do instead of task restart: :environment do

@matthewd

matthewd commented Mar 2, 2015

Copy link
Copy Markdown
Member

task :restart do

@eileencodes

Copy link
Copy Markdown
Member

Thanks @matthewd it's early here 😁 need moar ☕

@hjoo

hjoo commented Mar 2, 2015

Copy link
Copy Markdown
Contributor Author

Done! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants