How to update an old catalyst script

Situation

From time to time the catalyst scripts in the script/ directory may become dated. This could happen after updating Catalyst::Devel. See Catalyst::setup() for the details. You'll know a script is dated, because when you run it you'll get a warning message. For example if you have a myapp_server.pl script that is dated you'll get the following warning:

[warn] You are running an old script!

  Please update by running (this will overwrite existing files):
    catalyst.pl -force -scripts MyApp

  or (this will not overwrite existing files):
    catalyst.pl -scripts MyApp

Solution

One can resolve the warning by following the its advice. In other words, you need to cd .. out of the project directory and run one of the two catalyst.pl examples above. One can choose to either overwrite the current scripts or create a new copy.

Overwrite Existing Scripts

catalyst.pl -force -scripts MyApp

This will create new version of the script in place.

Create .new scripts

catalyst.pl -scripts MyApp

This will create copies of the scripts/ but with the .new suffix appended. You will have to manually copy them to the right location.

My tags:
 
Popular tags:
 
Powered by Catalyst
Powered by MojoMojo Hosted by Shadowcat - Managed by Nordaaker