Git Product home page Git Product logo

Comments (4)

silverslice avatar silverslice commented on August 20, 2024 2

As mentioned in #134

Currently the CLI is the primary interface. But it should be straight-forward enough to write your own web wrapper around the tool.

You can manually build arguments in your script and then run ruckus with exec() function in php something like this:

exec('./bin/ruckus.php db:migrate', $output);
echo implode('<br>', $output);

from ruckusing-migrations.

kevcam4891 avatar kevcam4891 commented on August 20, 2024

Its definitely possible, but as for implementation, it depends on your
framework. CakePHP and other frameworks make it VERY easy to do this.
Just map a url to a specific controller/action.

If you do not use a framework, you will have to map a URL request to
your apache installation which should fire a php script.

However apache ultimately reaches and executes the PHP, that script
should contain code that exec()'s the migration update command.

Gampesh mailto:[email protected]
July 1, 2015 at 8:43 AM

Is it possible to execute the migration command through http request?
Actually i wanted to create some services which will update the
database based on the parameter i.e. task, ENV.


Reply to this email directly or view it on GitHub
#160.

from ruckusing-migrations.

Gampesh avatar Gampesh commented on August 20, 2024

Thanks for the reply.
I am new to this and I am not sure how to map url. Also Ruckusing_FrameworkRunner method require $argv which is a global variable. So when I would do HTTP request $argv does not contain the values of post or get request.
I am trying to use it in Zend Framework 1.
any help would be appreciated.

from ruckusing-migrations.

Gampesh avatar Gampesh commented on August 20, 2024

Thanks let me try this.

from ruckusing-migrations.

Related Issues (20)

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.