Giter Site home page Giter Site logo

Comments (8)

JStika avatar JStika commented on May 29, 2024

Second problem.
I put _ss_environment.php file.
Installer don't see constant from define('SS_DATABASE_NAME','db_name');

from silverstripe-installer.

dhensby avatar dhensby commented on May 29, 2024

You need to use global $database

On 28 July 2013 14:16, Jaroslav Stika [email protected] wrote:

  1. problem. I put _ss_environment.php file. Installer dont see
    constant from define('SS_DATABASE_NAME','db_name');


Reply to this email directly or view it on GitHubhttps://github.com//issues/46#issuecomment-21683344
.

from silverstripe-installer.

simonwelsh avatar simonwelsh commented on May 29, 2024

@JStika Do you have PHPUnit installed via PEAR? Or only via composer? Which version?

@dhensby No, SS_DATABASE_NAME is a valid way of supplying the database name.

from silverstripe-installer.

JStika avatar JStika commented on May 29, 2024

@dhensby Why I need to use glabal $database? In file /framework/docs/en/topics/environment-management.md if writen:

Available Constants

| SS_DATABASE_NAME | Set the database name. Assumes the $database global variable in your config is missing or empty. |

from silverstripe-installer.

JStika avatar JStika commented on May 29, 2024

@simonwelsh I've PHPUnit 3.7.22

from silverstripe-installer.

JStika avatar JStika commented on May 29, 2024

I did reinstall PHPUnit. Web installer works, but redirect ends with corrupted connection http://www.ss31b.sk.loc/home/successfullyinstalled?amp%3Bflushtoken=389e108729a54c81cd2a96510ce97e12&flush=1&flushtoken=130415e6cf8c6eb70081928d48d420a6
When I put http://www.ss31b.sk.loc/ I see:
screen1
I need to add Director::setBaseURL('/'); to file /mysite/_config.php, after this modification I see correct screens like this:
screen2

from silverstripe-installer.

JStika avatar JStika commented on May 29, 2024

Why I need to add Director::setBaseURL('/'); ???????????

from silverstripe-installer.

lukereative avatar lukereative commented on May 29, 2024

Closing this as it seems to relate to a specific issue on 3.* that has not been followed up. Reopen this issue if a specific example on 4.* can be provided.

from silverstripe-installer.

Related Issues (20)

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.