Comments (4)
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.
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 AMIs 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.
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.
Thanks let me try this.
from ruckusing-migrations.
Related Issues (20)
- Run migration through code HOT 1
- db:migrate throws exception if migrations dir is not writable HOT 3
- migrate_from_offset issue HOT 1
- Unable to execute query for trigger HOT 10
- DB connection issue when trying to setup Ruckusing Migrations - Abstract.php No Such File Or Directory HOT 4
- Error during migrations and rollbacks. "Reason: Commands out of sync; you can't run this command now" HOT 3
- Is there any plan to have more details in schema_migrations table? HOT 1
- MySQL timestamp needs a NULL attribute when null == true
- how can i add auto_increment column to work with mysql and postgres databases? HOT 5
- FOREIGN KEY Constraint HOT 1
- Exception not properly thrown HOT 1
- Documentation for config file HOT 1
- CREATE INDEX CONCURRENTLY cannot run inside a transaction block
- Fatal error: Class 'mysqli' not found in /web/vendor/ruckusing/ruckusing-migrations/lib/Ruckusing/Adapter/MySQL/Base.php on line 1259 HOT 3
- Error:I dont know what column type of 'longtext' maps to for MySQL
- Roadmap: Integrate Percona Toolkit? HOT 1
- Use PSR LoggerInterface instead of Ruckusing_Util_Logger.
- Unable to connect via TLS for MySQL connections
- too many connections
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruckusing-migrations.