GithubHelp home page GithubHelp logo

Comments (9)

chrisbbreuer avatar chrisbbreuer commented on June 30, 2024 1

Thanks for your quick reply. I was just wondering if you will enable a updating method:

Update: In order to update your application, go to the /update url and follow the instructions.

There currently isn't an update route. Just wondering 👍

from laravel-installer.

ajayfroiden avatar ajayfroiden commented on June 30, 2024

Hi @Chinese1904 ,
Sorry, i did not get your question. Where do you want this to be implemented?

from laravel-installer.

NickRT91 avatar NickRT91 commented on June 30, 2024

This would be awesome if implemented :)

from laravel-installer.

hyvikk avatar hyvikk commented on June 30, 2024

how can i redirect from install to main page if it's already installed?

from laravel-installer.

ajayfroiden avatar ajayfroiden commented on June 30, 2024

@hyvikk You do not need to open the /install in that case.

from laravel-installer.

chrisbbreuer avatar chrisbbreuer commented on June 30, 2024

what I have done in my case is actually redirect if /install is called after it is installed, because visitors are not supposed to see that site. :-)

from laravel-installer.

ajayfroiden avatar ajayfroiden commented on June 30, 2024

@Chinese1904 Perfect. Make Sense

from laravel-installer.

NickRT91 avatar NickRT91 commented on June 30, 2024

@Chinese1904 Can you share your redirect fix / maybe offer to pull it into here for us others to use? :)

from laravel-installer.

chrisbbreuer avatar chrisbbreuer commented on June 30, 2024

There are a lot of options actually and it will depend on what you want to achieve. Right now there seems to be a bug, because it should throw a 404 error if it already is installed and the installed routes get accessed, but it does not.

The easiest way is to modify the routes.php file like this while the bug hasn't been fixed:

if (! File::exists(storage_path('installed'))) {
    // all the installer routes here
    Route::get('/', [
        'as' => 'welcome',
        'uses' => 'WelcomeController@welcome'
    ]);
    ...
} else {
    abort(404); // or redirect anywhere else
}

Make sure to not delete the installed file.

If I find some more time, I will look for the bug later. :-)

edit:
please try this PR #8

from laravel-installer.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.