Skip to content

ADD: add more config vars for wp #3

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

Merged
merged 1 commit into from
May 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ To setup the Edly edx themes repo.
"/edx/src/edly-edx-themes"
]
```
7. Run `paver update_assets` in the docker shell from the `/edx/app/edxapp/edx-platform` folder.
8. Exit the docker shell using `Ctrl+D`
9. Run `make lms-restart`
10. Go to `http://localhost:18000/admin` and login using `edx` and `edx`.
7. Run `docker-compose restart lms` in the `/edly/edX` folder.
8. Run `paver update_assets` in the docker shell from the `/edx/app/edxapp/edx-platform` folder.
9. Exit the docker shell using `Ctrl+D`
10. Run `make lms-restart`
11. Go to `http://localhost:18000/admin` and login using `edx` and `edx`.
12. Go to `http://localhost:18000/admin/sites/site/` and add a new site with values `domain` as `localhost:18000` and `display name` as `st-lutherx`.
13. Go to `http://localhost:18000/admin/theming/sitetheme/` and add a new theme with values `site` as `localhost:18000` and `Theme dir name` as `st-lutherx`.
14. This should work.
Expand Down
15 changes: 14 additions & 1 deletion repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ repos=(
"https://github.com/edx/ecommerce.git"
"https://github.com/edx/edx-e2e-tests.git"
"https://github.com/edx/edx-notes-api.git"
"https://github.com/edx/edx-platform.git"
"https://github.com/edx/xqueue.git"
"https://github.com/edx/edx-analytics-pipeline.git"
"https://github.com/edx/gradebook.git"
Expand All @@ -41,6 +40,8 @@ private_repos=(
"https://github.com/edx/edx-themes.git"
)

edx_repo="https://github.com/edly-io/edx-platform.git"

wp_plugin_repos=(
"[email protected]:edly-io/edly-wp-plugin.git"
)
Expand Down Expand Up @@ -133,11 +134,23 @@ _get_latest_wp_tag() {

clone ()
{

_clone "${repos[@]}"

WP_PLUGIN_DIR=$DEVSTACK_WORKSPACE/wp_plugins
WP_THEME_DIR=$DEVSTACK_WORKSPACE/wp_themes

# clone Edly edx-platform
cd $DEVSTACK_WORKSPACE
if [ ! -d $DEVSTACK_WORKSPACE/edx-platform ]; then
git clone $edx_repo --branch develop
else
printf "The [%s] repo is already checked out. \n" $repo
fi




[ -d $WP_PLUGIN_DIR ] || mkdir $WP_PLUGIN_DIR
[ -d $WP_THEME_DIR ] || mkdir $WP_THEME_DIR

Expand Down
5 changes: 5 additions & 0 deletions wordpress/wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
define('IS_LOGGED_IN_COOKIE', 'edxloggedin');
define('USER_INFO_COOKIE', 'edx-user-info');

define('ENROLLMENT_API_URL', LMS_BASE_URL . '/api/enrollment/v1');
define('ENROLLMENT_STATUS_API_URL', LMS_BASE_URL . '/api/enrollment/v1/enrollment');
define('COURSE_DASHBOARD_URL', LMS_BASE_URL . '/dashboard');
define('COURSE_REGISTER_URL', LMS_BASE_URL . '/register');
define('COURSE_DETAIL_URL', LMS_BASE_URL . '/courses');

/**#@+
* Authentication Unique Keys and Salts.
Expand Down