Giter Site home page Giter Site logo

limesoda / limesoda_environmentconfiguration Goto Github PK

View Code? Open in Web Editor NEW
72.0 72.0 15.0 99 KB

Enables developers to modify Magento installations (configuration, data) based on the given environment using n98-magerun.

PHP 89.19% HTML 6.18% JavaScript 3.53% CSS 1.10%

limesoda_environmentconfiguration's People

Contributors

avoelkl avatar avstudnitz avatar eliaskotlyar avatar mzeis avatar schmengler avatar tegansnyder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

limesoda_environmentconfiguration's Issues

Improve check/handling of ls:env:configure

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:

  • If no environment was added as a parameter, list the existing environments as a select dialog with the configured one being the default

Impossible to use configuration values starting with a dash

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.

Missing feature: scope/scope_id

Nice extension!

But how can I configure specific settings for different scopes and scope_ids?

Or did I miss something in the docs?

Fatal error: Allowed memory size exhausted

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

Parse error when executing command

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?

Magento2 Port

Are there any plans for a Magento 2 port of the extension?

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.