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

ABSPATH not expanding in .env #2

Open
ptica opened this issue Mar 4, 2015 · 1 comment
Open

ABSPATH not expanding in .env #2

ptica opened this issue Mar 4, 2015 · 1 comment

Comments

@ptica
Copy link
Contributor

ptica commented Mar 4, 2015

in https://github.com/wecodemore/wp-composer-config/blob/master/ci/.env.example#L31:

WP_CONTENT_DIR={$ABSPATH}/wp-content

the {$ABSPATH} is not expanding for me,
not sure how to properly handle this, so I'm hardcoding the path to wp-content dir as a workaround

@franz-josef-kaiser
Copy link
Member

Try the following:

# Paths & URls
DOMAIN=example.dev
# Admin:
WP_SITEURL=http://{$DOMAIN}/wp
# Public:
WP_HOME=http://{$DOMAIN}
WP_CONTENT_DIR=/var/www/wp-content
WP_CONTENT_URL=http://{$DOMAIN}/wp-content
WP_PLUGIN_DIR={$WP_CONTENT_DIR}/plugins
WP_PLUGIN_URL={$WP_CONTENT_URL}/plugins
WPMU_PLUGIN_DIR={$WP_CONTENT_DIR}/mu-plugins
WPMU_PLUGIN_URL={$WP_CONTENT_URL}/mu-plugins
WP_TEMP_DIR={$WP_CONTENT_DIR}/tmp

and please check if ABSPATH is defined (at the beginning of your wp-config.php file).

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

No branches or pull requests

2 participants