You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 11, 2018. It is now read-only.
Is it possible to run this using foreman, thus using the environmental variables, and the DATABASE_URL variable locally? When I try this, I get the error Error establishing a database connection.
Here is how I'm doing it.
In my Procfile_dev file
web: php -S 127.0.0.1:80 -t ./
In my .env file:
AUTH_KEY=[ VALUE HERE ]
SECURE_AUTH_KEY=[ VALUE HERE ]
LOGGED_IN_KEY=[ VALUE HERE ]
NONCE_KEY=[ VALUE HERE ]
AUTH_SALT=[ VALUE HERE ]
SECURE_AUTH_SALT=[ VALUE HERE ]
LOGGED_IN_SALT=[ VALUE HERE ]
NONCE_SALT=[ VALUE HERE ]
DATABASE_URL=[ VALUE HERE ]
HEROKU_POSTGRESQL_BLUE_URL=[ VALUE HERE ]
AWS_ACCESS_KEY_ID=[ VALUE HERE ]
AWS_SECRET_ACCESS_KEY=[ VALUE HERE ]
SENDGRID_PASSWORD=[ VALUE HERE ]
SENDGRID_USERNAME=[ VALUE HERE ]
Then I run:
sudo foreman start -f Procfile_dev --env .env
I'm on OS X Yosemite using PHP 5.5 though Homebrew, with the php55-pdo-pgsql package installed.
The text was updated successfully, but these errors were encountered:
These are then set to http://localhost/ in my .env file, and to my sites live domain on Heroku. This prevents Wordpress from redirecting to whatever URL values are in the database.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is it possible to run this using
foreman
, thus using the environmental variables, and theDATABASE_URL
variable locally? When I try this, I get the errorError establishing a database connection
.Here is how I'm doing it.
In my
Procfile_dev
fileIn my
.env
file:Then I run:
I'm on OS X Yosemite using PHP 5.5 though Homebrew, with the
php55-pdo-pgsql
package installed.The text was updated successfully, but these errors were encountered: