0

I want to know there is any way by which we can create a installer or some package for laravel application by which user can simple paste file and deployer will ask for db host and other setting and install application.

Also is there anyway by which we deploy a new build in current application and it will have all new updates which may contains updates in previous table. We want to keep data safe and release updates.

Rajat Jain
  • 33
  • 3

1 Answers1

0

Got help from this answer

Install

To create installer for your application, you can Laravel-Installer package.

This package has following features:

  • Check For Server Requirements.
  • Check For Folders Permissions.
  • Ability to set database information.
    • .env text editor
    • .env form wizard
  • Migrate The Database.
  • Seed The Tables.

Update

Updating your database mean needs to migrate your database. You can run your migrate command through your application.

Run migration command from anywhere

Artisan::call('migrate');

With using route:

Route::get('/run-migrations', function () {
    return Artisan::call('migrate', ["--force"=> true ]);
});
Sovon
  • 1,804
  • 1
  • 22
  • 30
  • This is for installing Laravel but my point is I want to update my application which is in laravel and I want to update features in my existing application. – Rajat Jain May 06 '18 at 06:36
  • Do you want to update application codes/ files? You can share your codes with `git` or you can ask them update your files in their project folder. – Sovon May 06 '18 at 07:19