Commit graph

10 commits

Author SHA1 Message Date
Josef Nevoral
c003574f77 Fixed: Array access for $config, which is already object create in bootstrap.php 2014-02-04 23:04:49 +07:00
Dan Cryer
aaa876d228 Merge pull request #257 from tobiastom/patch-2
Redirect after installation is broken
2014-01-28 08:57:32 -08:00
Tobias Tom
c7de384750 Redirect after installation is broken
Currently the form just redirects to `/session/login`, which is wrong if PHPCI was installed into a subdirectory. 

This pull request fixes the URL that is used in the last form step.
2014-01-25 14:26:47 +01:00
Tobias Tom
37248fcd5b When phpci is default, it should be used.
The installer displays `phpci` as placeholders for the database settings (database and username).

When I do not change them the installer fails with this error:

`Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected' in /Users/tobias/Sites/PHPCI/vendor/block8/b8framework/b8/Database/Map.php on line 40`

I assume it is simply because they are not set. This pull requests uses the given values, or phpci as default.

In theory I would assume all the configuration values should be checked somehow. Is this just not implemented, or is it not desired?
2014-01-25 14:22:15 +01:00
Steve B
5857bd0a3d Merge pull request #186 from esion/fix_install
fix error on missing files until installation is done
2013-12-07 05:16:13 -08:00
hek2mgl
1008a3db6e Update install.php
"Pretty printing" `config.yml` in order to make it editable by humans. `5` is just value which is looking good for me. It produces a `config.yml` like this:

    prevstage:
        - start
        - database
        - github
        - email
    b8:
        database:
            servers:
                read:
                    - localhost
                write:
                    - localhost
            name: phpci
            username: *****
            password: *****
    phpci:
        url: 'http://phpci.my.org'
        github:
            id: ''
            secret: ''
        email_settings:
            smtp_address: ''
            smtp_port: ''
            smtp_encryption: on
            smtp_username: ''
            smtp_password: ''
            from_address: ''
            default_mailto_address: ''

I guess the `prevstage` node can be replaced before writing? If yes I'll prepare that.
2013-11-13 00:48:03 +01:00
Thorsten Heymann
217c29cac5 Fixed bug in install php.
install.php requires bootstrap.php instead of vars.php because otherwise
`$config` won't be set in vars.php.

This fixes: Fatal error: Call to a member function get() on a non-object
in /var/www/vars.php on line 11
2013-11-05 21:59:38 +01:00
David Epely
02fefe9985 fix error on missing files until installation is done 2013-10-19 16:49:52 +02:00
Dan Cryer
77fae9a56d Holy cleanup, batman. 2013-10-10 01:01:06 +01:00
Dan Cryer
a634f6086b Installer 2013-10-07 12:59:33 +01:00