I am setting up a Laravel 5 openshift application but every time i had the database code in project it says whoops something missing. I have added the environment in .env as in my database credential an still no success. I am wondering what may be the cause of this since I followed all instruction the website is working but only if I omit my database code.
Laravel 5 Openshift Database not connecting
215 Views Asked by user22092 At
1
There are 1 best solutions below
Related Questions in LARAVEL-5
- Laravel eloquent select not accepting if function
- Laravel When Condition on a column
- Laravel 5 Querying "Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Call to a member function addEagerConstraints() on null"
- Cannot log-in to ReadyKit after changing a migration
- How to fix the error [The file was not uploaded due to an unknown error.]
- update vue2 to vue3 on Laravel 5.5 (node 12)
- How to Create an Animated CSS Background Image Dynamically Fetched from a Database Using Laravel
- How Can I Display Single Image From Array Of Images
- Deprecated ReflectionParameter::getClass() Errors After Switching Back to Laravel 5.5 from Laravel 6
- How to allow a single script in Laravel app, blade page when CSP (Content Security Policy) is enabled?
- LARAVEL 5.7 JSONResource toArray ERROR: Declaration should be compatible
- php - session seems as like it was never removed, even after using session remove + forget+put null
- Laravel 5.2 + MySQL 8.0 On RDS - Connection Errors Out With "SQLSTATE[HY000] [2002]"
- laravel Auth::logoutOtherDevices() doesn't redirect to login page?
- i need to update url for larval website where i do try htaccess but not working
Related Questions in OPENSHIFT
- Openshift nginx proxy_pass not redirecting from current host to another
- Choosing OpenShift Over DIY Kubernetes on Bare Metal: Benefits and Storage Management
- Tekton, npm ci, and "npm ERR! EMFILE: too many open files, open '/root/.npm/_cacache/"
- How to setup security on elasticsearch based on redhat image in openshift
- Why does openshift ingress not allow router annotations?
- How to use Prometheus to gather custom metrics from multiple pods in Openshift
- UML representation of containerized services
- Verify encryption of rest secrets [etcd] in Openshift v4
- The [dot_product] similarity can only be used with unit-length vectors error when running container as non root
- Using OpenShift template to conditionally include/exclude certain resources during apply
- Permission denied When deploy Splash in OpenShift
- Pulumi and Golang to apply a subscription manifest onto a OpenShift Cluster
- Can't login on deployed APS app, problem with authenticating
- How do I configure multi-tenant Kafka-backed Knative channels in an Openshift?
- Linux (RHEL): How can I trigger that a process tries to reorganize its memory at a specific memory limit?
Related Questions in OPENSHIFT-PHP-CARTIDGES
- Openshift Backup - Server Not Reachable
- Creating application with OpenShift 3
- PHP mcrypt missing in OpenShift
- Openshift php app not working
- Openshift: databases environment variables are not set in PHP
- Unable to connect openshift mysql using spring boot
- As I connect APP OpenShift php with MSSQL remote?
- Openshift not running PHP/MySQL portions of code
- How to update httpd.conf file in openshift
- Can't connect through WiFi, but possible through Mobile Data
- No permission to change SELinux booleans
- Error when connecting one app to a different app's database
- Connecting two laravel application to one database Openshift
- OpenShift PHP Image Asset Giving 500 Error
- Laravel 5 Openshift Database not connecting
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Are you trying to get your database working for local or remote development? The
.envfile in the root directory is for local development, while the.openshift/.envfile is for remote development. If you're using an standard OpenShift database (such as MySQL or PostgreSQL), you shouldn't need to make any configuration changes to get the database working. It's already configured via environment variables.