Sha256: 24f2a315b685269a08bf8f883ee203ca1527b0dd7d8481d6aeb0e17d0c495e46
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
namespace :artisan do namespace :db do desc "Perform database migrations" task :migrate do on roles(:db) do within current_path do execute :php, "artisan migrate" end end end desc "Refresh database schema" # this will delete all the things task :refresh do on roles(:db) do within current_path do execute :php, "artisan migrate:refresh" end end end desc "Seed the database" task :seed do on roles(:db) do within current_path do execute :php, "artisan db:seed" end end end desc "Seed a specific class" task :seed_class do ask(:seed_class, "seeder") on roles(:db) do |h| within current_path do execute :php, "artisan db:seed --class=#{fetch(:seed_class)}" end end end end namespace :app do desc "Make the storage dir more accessible" task :storage do on roles(:app) do within current_path do execute :sudo, "chmod -R 777 app/storage" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
arc-laravel-0.0.4 | lib/capistrano/tasks/artisan.rake |