limesoda / limesoda_environmentconfiguration Goto Github PK
View Code? Open in Web Editor NEWEnables developers to modify Magento installations (configuration, data) based on the given environment using n98-magerun.
Enables developers to modify Magento installations (configuration, data) based on the given environment using n98-magerun.
As suggested by @schmengler and discussed internally, the feature should be implemented like this:
If no environment name was specified when calling n98-magerun.phar ls:env:configure
, assume the environment name set in the local configuration
If the environment is used like that, let the user confirm this choice:
Configure environment 'mz'? [y,n]
The user has to confirm this with "y"
For automation, a "force" parameter can be provided which will automatically confirm the question above
If the user provides an environment as an argument which is not the one set in the local configuration, stop with a warning/error.
Example: if environment abc
is set in local.xml
but the user executes n98-magerun.phar ls:env:configure def
, the execution should be stopped.
The user can provide a "force" parameter to still apply the other configuration.
Note: the naming of the force parameter and the confirmation of the choice is not fixed. If there is a standard way to do/name it in n98-magerun, we can follow that.
A nice to have feature which could be implemented additionally:
Hi,
When using ls:env:configure, I've noticed it's impossible to set a variable to a value starting with a dash, like '-1'.
This is caused by a known Symfony Console issue (symfony/symfony#3624), and the solution should be fairly straightforward to implement.
I would make a pull request, but I think you just need to change one line in lib/n98-magerun/modules/LimeSoda_EnvironmentConfiguration/src/LimeSoda/Environment/Configure.php where the config:set commands are executed (line 38):
$input = new StringInput('-- ' . $command);
instead of
$input = new StringInput($command);
The '-- ' makes sure no argument values after its appearance are interpreted as option names.
When the extension is installed and no environment name is specified, the new admin observer causes an error when grabbing the current environment configuration.
Nice extension!
But how can I configure specific settings for different scopes and scope_ids?
Or did I miss something in the docs?
Hi,
I really like this module en would like te use it. I used the default configuration XML as the base for versioned configuration, but this is much more advanced and better.
I only can't get it to work :-). I get an allowed memory size exhausted error:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 33554432 bytes) in /domains/happyrainydays.com/test/lib/Varien/Simplexml/Element.php on line 195
Can you help me with this? I don't know how to solve this.
Local.xml:
...
testing
...
Config module config.xml:
0.1.0<global>
<limesoda>
<environments>
<default parent="default">
<variables>
</variables>
<commands>
</commands>
</default>
<dev parent="default">
<variables>
</variables>
<commands>
</commands>
</dev>
<developer1 parent="dev">
<variables>
</variables>
<commands>
</commands>
</developer1>
<testing parent="default">
<variables>
<unsecure_base_url><![CDATA[http://test.happyrainydays.com/]]></unsecure_base_url>
</variables>
<system_configuration>
<default>
<web>
<unsecure>
<base_url>${unsecure_base_url}</base_url>
</unsecure>
</web>
</default>
</system_configuration>
<commands>
</commands>
</testing>
<staging parent="default">
<variables>
</variables>
<commands>
</commands>
</staging>
<live parent="default">
<variables>
</variables>
<commands>
</commands>
</live>
</environments>
</limesoda>
</global>
Hope you can help me with this.
Best regards,
Otto Smittenaar
I configured a module and set up a default environment. I unfortunately get the following error:
Warning: simplexml_load_file(): Entity: line 69: parser error : expected '>' in /Users/victorterhark/Sites/afurastore.dev/htdocs/app/Mage.php on line 767
I've tried to trace the problem with no succes :-(.
Any clues?
Are there any plans for a Magento 2 port of the extension?
Just a quick question, I don't see it right away but it would come handy sometimes to know that.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.