Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to configure php.ini #17

Merged
merged 1 commit into from
Aug 20, 2019
Merged

Allow to configure php.ini #17

merged 1 commit into from
Aug 20, 2019

Conversation

f3l1x
Copy link
Collaborator

@f3l1x f3l1x commented Aug 16, 2019

Hi guys!

Example of now.json with override php.ini.

{
    "version": 2,
    "name": "now-php-ini",
    "scope": "juicyfx",
    "regions": [
        "all"
    ],
    "public": true,
    "builds": [
        {
            "src": "*.php",
            "use": "now-php@experimental",
            "config": {
                "php.ini": {
                    "memory_limit": "128M",
                    "post_max_size": "32M"
                }
            }
        }
    ],
    "build": {
        "env": {
            "NOW_PHP_DEBUG": "1"
        }
    }
}

You can configure any php.ini directive under config['php.ini']. To test it please use now-php@experimental.

Example of overwritten post_max_size and memory_limit: Take a look at here: https://now-php-ini-f3l1x.juicyfx1.now.sh/

Default ones are: https://now-php-server.juicyfx1.now.sh/

@f3l1x f3l1x mentioned this pull request Aug 16, 2019
@f3l1x f3l1x changed the title Aallow to configure php.ini Allow to configure php.ini Aug 17, 2019
@f3l1x f3l1x merged commit fad0b36 into master Aug 20, 2019
@f3l1x f3l1x deleted the feature/php-ini branch August 20, 2019 09:40
@f3l1x f3l1x mentioned this pull request Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant