Hi,Just installed Edx on an EC2 instance today. And finally looks to be working. :) Looking really good!I'm pretty new to this, but I have manged to setup a class. Now I was wondering if there is a way to change the EdX logo? Also is there a way to remove the demo course that is there, or atleast hide it?
edxapp_theme_name: stanford
Sorry. Forgot reply-all
On Feb 10, 2014 1:56 PM, "Yarko Tymciurak" wrote:
>
>
> On Feb 10, 2014 1:32 PM, "Tom Morten Berge" wrote:
> >
> > Hi,
> >
> > Thanks for all your help so far.
> > I got the standford theme pulled in and loaded. got abit lost after that :)
>
> If by loaded, you mean you fired up lms, and saw the Stanford theme - great!
>
> You can check it visually against http:/online.Stanford.edu (I'm on mobile, so I think that's the URL; plus I think Stanford changes specific details on their deploy). On current edx-platform, I was not seeing the background image - but these things get fixed up quickly. (see https://github.com/Stanford-Online/edx-theme/issues/3 for details).
>
> > So is it safe to start changing the html and css? What will happen if I pull again later on? will my changes be overwritten? Would it be safe to copy this theme to "mytheme" and then load it as a custom theme?
>
> So, once you have the basics looking right, it means you've nailed the edx configuration for theming basics.
>
> Next steps:
> Fork Stanford-Online/edx-theme to your own repo, and perhaps create a development branch.
>
> Before you change any theme code, you can check your fork+branch which you're now working off of:
>
> Change the appropriate variables in the ansible extra vars which you (for now) copied into server-vars.yml
>
> E.g. change THEME_ACCT to your github acct, and the version to your branch name.
>
> You might as well change the theme name - this should just change the name of where it gets pulled into under /edx/app/edxapp/themes
>
> Do another update and check the themes directory for evidence, and bring 'er up!
>
> If all well, start making changes.
>
> > Alot of noob questions I guess, but trying to learn :)
> >
>
> No worries - no one has done any more than hack in the themes to date, I think (save Stanford, and MIT).
>
> We, the independent edx devs, are just trying to get this into place.
>
> Welcome,and let's have lots of fun!
>
> - Yarko
Sorry - forgot reply-all.
On Feb 10, 2014 2:06 PM, "Yarko Tymciurak" wrote:
>
> The thing to remember:
>
> You want to change the *.scss (or *.scss.mako), files, as these get processed by rake (soon to be paver) commands.
>
> For the HTML, you want to update mako templates (*.HTML files in the templates directory). If you want to update templates which are in edx-platform, copy those to your theme and change them there.
>
> On Feb 10, 2014 1:56 PM, "Yarko Tymciurak" wrote:
>>
>>
>> On Feb 10, 2014 1:32 PM, "Tom Morten Berge" wrote:
>> >
>> > Hi,
>> >
>> > Thanks for all your help so far.
>> > I got the standford theme pulled in and loaded. got abit lost after that :)
>>
>> If by loaded, you mean you fired up lms, and saw the Stanford theme - great!
>>
>> You can check it visually against http:/online.Stanford.edu (I'm on mobile, so I think that's the URL; plus I think Stanford changes specific details on their deploy). On current edx-platform, I was not seeing the background image - but these things get fixed up quickly. (see https://github.com/Stanford-Online/edx-theme/issues/3 for details).
>>
>> > So is it safe to start changing the html and css? What will happen if I pull again later on? will my changes be overwritten? Would it be safe to copy this theme to "mytheme" and then load it as a custom theme?
>>
>> So, once you have the basics looking right, it means you've nailed the edx configuration for theming basics.
>>
>> Next steps:
>> Fork Stanford-Online/edx-theme to your own repo, and perhaps create a development branch.
>>
>> Before you change any theme code, you can check your fork+branch which you're now working off of:
>>
>> Change the appropriate variables in the ansible extra vars which you (for now) copied into server-vars.yml
>>
>> E.g. change THEME_ACCT to your github acct, and the version to your branch name.
>>
>> You might as well change the theme name - this should just change the name of where it gets pulled into under /edx/app/edxapp/themes
>>
>> Do another update and check the themes directory for evidence, and bring 'er up!
>>
>> If all well, start making changes.
>>
>> > Alot of noob questions I guess, but trying to learn :)
>> >
>>
>> No worries - no one has done any more than hack in the themes to date, I think (save Stanford, and MIT).
>>
>> We, the independent edx devs, are just trying to get this into place.
>>
>> Welcome,and let's have lots of fun!
>>
>> - Yarko
>>
>> >
>> >
Hi,
One step done, one step fail :)so I deleted the stanford folder under themes, then forked https://github.com/Stanford-Online/edx-theme into my own github account.Then clones it (no new branch, operating on master), so I have now a theme edx-theme under the themes direcotry. Then added https://github.com/Stanford-Online/edx-theme to my upstream, and checked in my git config file that origin points to my github.In server-vars.yml, I now have the following:THEME_ACCT: norsecode/edx-theme # Theme repos
edxapp_use_custom_theme: true # false => to disable & use std. themeedxapp_theme_name: edx-theme
edxapp_theme_source_repo: https://{{ COMMON_GIT_MIRROR }}/{{ THEME_ACCT }}/edx-theme.git
Load paths:/edx/app/edxapp/edx-platform/edx/app/edxapp/edx-platform/common/static/sass/edx/app/edxapp/themes/edx-theme/static/sass
On Monday, February 10, 2014 3:53:48 PM UTC-6, Tom Morten Berge wrote:Hi,One step done, one step fail :)so I deleted the stanford folder under themes, then forked https://github.com/Stanford-Online/edx-theme into my own github account.Then clones it (no new branch, operating on master), so I have now a theme edx-theme under the themes direcotry. Then added https://github.com/Stanford-Online/edx-theme to my upstream, and checked in my git config file that origin points to my github.In server-vars.yml, I now have the following:THEME_ACCT: norsecode/edx-theme # Theme reposthis (THEME_ACCT) should only be: norsecode, without the edx-theme part.edxapp_use_custom_theme: true # false => to disable & use std. themeedxapp_theme_name: edx-themeProbably want this some name that makes more sense / less confusing - like 'toms_theme' (without the quotes), or 'built_on_stanfords_theme' - it should be something which logically distinguishes is.For example, naming the stanford theme "stanford" was nowhere, but in my choice to name it so, here.
the theme is named edxapp_theme_name (stanford - anything you want to identify it as, which will read nicely) on my server,
which was created from the edxapp_theme_version (master in this case; can be branch, tag, or specific version)
of the edxapp_theme_source_repo (https://github.com/norsecode/edx-theme.git in this case).
Hi,Thanks again for everything.
Hi,
Thanks again for everything.I am still using edxapp_theme_name as stanford, not able to get it to work with any other name. When I use another name, I see the clones repo, but there is a name dependency somewhere which I have not been able to locate yet. In the theme itself, the template name is used, so I did a sed replace with the new name but that still didn't work. So maybe there is another dependency somewhere. For now though, I am moving ahead with the stanford name.I have started to modify the theme, so far so good :)
However I have another issue. I seem to still be using localhost, instead of the IP of my E2C instance. I saw this when I got my confirmation email when signing up for a studio account. I substituted my ip into the confirmation link at it worked, but I need to make the switch somewhere. I'm assuming this is the reason why the Live view button in studio is not working either. Been googling, and found this:You need to put the server name in the PREVIEW_LMS_BASE variable, found in the cms.env.json and lms.env.json files.So I tried to override it in my server-vars.yml like this: PREVIEW_LMS_BASE = xx.xx.xxx.xxx, or is it ok to edit the json files directly?Does not look like it had the desired effect. Any more smart ideas? :)In the meanwhile I'm going to play around with the json files.
On Tue, Feb 11, 2014 at 9:45 AM, Tom Morten Berge <tomb...@gmail.com> wrote:
Hi,Thanks again for everything.What about USE_CUSTOM_THEME var set to True ?
On Tuesday, February 11, 2014 8:53:29 AM UTC-6, Cristian Salamea wrote:On Tue, Feb 11, 2014 at 9:45 AM, Tom Morten Berge <tomb...@gmail.com> wrote:
Hi,Thanks again for everything.What about USE_CUSTOM_THEME var set to True ?Tom -I'm assuming you must have this set, or you wouldn't have reported "name" set to "stanford" working.At some point, for these discussions, to help you, it would be useful for you to share the server-vars.yml file you're currently using (cleaned up of any private / IP info, of course).
On Tue, Feb 11, 2014 at 11:13 AM, Yarko Tymciurak <yar...@gmail.com> wrote:
On Tuesday, February 11, 2014 8:53:29 AM UTC-6, Cristian Salamea wrote:On Tue, Feb 11, 2014 at 9:45 AM, Tom Morten Berge <tomb...@gmail.com> wrote:
Hi,Thanks again for everything.What about USE_CUSTOM_THEME var set to True ?Tom -I'm assuming you must have this set, or you wouldn't have reported "name" set to "stanford" working.At some point, for these discussions, to help you, it would be useful for you to share the server-vars.yml file you're currently using (cleaned up of any private / IP info, of course).About this, there is any guide to run theme in devstack mode ?Regards,
Hi,
I'm testing now. However, (you might be hinting at this above) every time I run update it seems to pull in my edx-theme.git repo, and overwrite any local changes. Doesn't seem to matter what I do (add or commit). Is there a way to avoid this? I know I can push them ofcourse, but I really don't want to push every single change I do :)
On Tue, Feb 11, 2014 at 12:09 PM, Tom Morten Berge wrote:
Hi,
I'm testing now. However, (you might be hinting at this above) every time I run update it seems to pull in my edx-theme.git repo, and overwrite any local changes. Doesn't seem to matter what I do (add or commit). Is there a way to avoid this? I know I can push them ofcourse, but I really don't want to push every single change I do :)
Oh! This is fundamental in development for edx (there are too many moving parts) - yes, you need to push every single change you make off the server being changed. That's what branches are great for. You can squash later. Commit / push. Commit / push. Get your fingers used to it.I have 3 remotes on my local repositories potentially - my personal fork; the target fork that I'm developing for; the edx repo to pull needed changes, merge when I decide.
The only way I can see you getting "around" that is to have a local "repo" which you push to - but then why would you do that?Keeping a "repo" on your server is ... well, think about the general case of deploying to multiple servers - it's not a development process.Here's the store (remote pushed to):Here's the factory (deployment server);Now we build (ansible);Now we adjust the process (save to remote);- repeat;
Hi,
I'm testing now. However, (you might be hinting at this above) every time I run update it seems to pull in my edx-theme.git repo, and overwrite any local changes. Doesn't seem to matter what I do (add or commit). Is there a way to avoid this? I know I can push them ofcourse, but I really don't want to push every single change I do :)
Hi,Found one thing edx-platform/lms/templates/courseware/courses.html that I need to change, so I decided to fork edx-platform to and make a dev_1 branch.
to get update to work I was hoping it would be enough to add edx_platform_repo: https://{{ COMMON_GIT_MIRROR }}/norsecode/edx-platform.git to server-vars.yml
where edx-platform will pick up your repository, and dev_1 will be passed in as the "version" (tag/branch/specific commit) - I think this should work.sudo /edx/bin/update edx-platform dev_1
I am trying that. So I deleted my edx-platform repo (overkill probably), and cloned a new one like this:sudo git clone https://github.com/edx/edx-platform.git
then tried to run update, but still getting the same error as before. Do I have to do anything more then the cloning?
Hi, I did the following steps to load the theme:1.- In /edx/var/edx_ansible/server-vars.yml add:
- THEME_ACCT: iaen-edu
- edxapp_use_custom_theme: true
- edxapp_theme_name: stanford
- edx_app_theme_source_repo: https://{{ COMMON_GIT_MIRROR }}/{{ THEME_ACCT }}/upex-theme.git
- edxapp_theme_version: master
2.- update the platform with sudo /edx/bin/update edx-platform master
neglected "reply all"...
Hi,Got the update script working now. Just as you said, just delete it first.To fix my other problem, I tried to copy the courses.html template to a subfoler in my theme and change it there.How does it know to pick that html file up as oppose to the original one? Do I need to do anything else?
I tried to copy the html file and then modify the text, ( and then run update), but it seems like it still uses the original courses.html in lms/templates/courseware/courses.htmlthanks again for all your help :)
neglected "reply all"...
Hi Tom -I noticed the last few from you were only for me.Would you mind if I cc'd the last few, and moved this to google groups?I think others might benefit.
On Wed, Feb 12, 2014 at 6:46 PM, Tom Morten Berge <tomb...@gmail.com> wrote:
Hi,things are moving along :)However, I have not understood how to configure localhost (Would like to set it to the server IP.) and get Live View button in studio to work. Live view address is missing IP in front when I look in browser, so think they are related.Is there a parameter I can overwrite.Tried to do this: PREVIEW_LMS_BASE: <IPaddress> in server-vars.yml, but no effect.I'm not sure this will have effect in server-yaml, since this is not an ANSIBLE variable, but rather a django settings.FEATURES setting (i.e. see: https://github.com/edx/edx-platform/search?q=PREVIEW_LMS_BASE&type=Code for the spattering of examples).Also - I don't imagine you want to use IP addresses, rather DNS names.Reasons are multiple, but mostly that between nginx and gnunicorn, I think everything is served for localhost, and rewritten to the outside by gnunicorn (I don't have experience w/ setting this up on edx, configuring gnunicorn, but this is what I expect).With "preview" you are internally linking the cms django instance (server), telling it where the lms local instance is.Look at the (for example) devstack or test cms/envs/devstack.py (etc.) files for a pattern, and change your... I forget - were you configured to use cms/envs/dev.py, or cms/envs/aws.py? --- regardless, you should be able to set in aws, since dev includes/ inherits from that (unless you _only_ want it on a dev instance).BTW - as a django settings feature, somewhere "magic" (that is - I haven't yet bothered to exactly trace it out) the /edx/app/edxapp/cms.env.json gets created so as to share the django settings with other things (such as rake commands). At least, that is the "logic" that looks like it must be in place to me...
On Wed, Feb 12, 2014 at 12:23 PM, Tom Morten Berge <tomb...@gmail.com> wrote:
Hi,
Got the update script working now. Just as you said, just delete it first.To fix my other problem, I tried to copy the courses.html template to a subfoler in my theme and change it there.How does it know to pick that html file up as oppose to the original one? Do I need to do anything else?
Look at the hints here: https://github.com/edx/configuration/wiki/edX-Managing-the-Production-Stack#wiki-compile-assets-manuallySpecifically, watch the command which rake runs which is a "manage.py" or "django-admin" command;(rake is just a "make" tool which executes commands).You want to orient yourself to what degrees of freedom are available.You will be looking for at least two things, I think:
- gather_assets (rake name) or collect_static (I think that's the django command) only update;
- the path of your theme I expect will be picked-up the various paths to find what it's looking for (courses.html);
- caveat: I'm a bit of a novice here: edx does things a little custom w.r.t. templates / themes;
- look at the command which the rake "gather_assets" runs.
- Mimic it's form - the "lms" and "--settings" parts, but manually run the "--help" (two dashes) option.
- this should list all the available admin commands for lms - look for "clear gathered assets" (or collected)
- I don't know if you need it, but if you run this, you will be sure to have a "fresh, full" gather (i.e. run gather_assets after);
- run rake -T and see if you can find the equivalent "rake" command (it may add / do other things, may be more complete);
The other "cache" which might get in your way will be (of course) the browser cache - be sure to force-reload when you first try to look at your new theme.I tried to copy the html file and then modify the text, ( and then run update), but it seems like it still uses the original courses.html in lms/templates/courseware/courses.htmlthanks again for all your help :)No worries!Happy it seems to be working, happy to able to help.Waiting to hear how this next part works for you.
On Tue, Feb 11, 2014 at 11:44 PM, Yarko Tymciurak <yar...@gmail.com> wrote:
but - again - I don't think you need another repo; I think you can copy this file into your theme (make any subdirectories to templates as needed), and change that copy.
neglected "reply all"...
ah! digging a little more, I think you want to set this:in your server-vars.yml: EDXAPP_PREVIEW_LMS_BASEThis makes sense
On Wed, Feb 12, 2014 at 7:19 PM, Yarko Tymciurak <yar...@gmail.com> wrote:
Hi Tom -I noticed the last few from you were only for me.Would you mind if I cc'd the last few, and moved this to google groups?I think others might benefit.
On Wed, Feb 12, 2014 at 6:46 PM, Tom Morten Berge <tomb...@gmail.com> wrote:
Hi,
things are moving along :)However, I have not understood how to configure localhost (Would like to set it to the server IP.) and get Live View button in studio to work. Live view address is missing IP in front when I look in browser, so think they are related.Is there a parameter I can overwrite.Tried to do this: PREVIEW_LMS_BASE: <IPaddress> in server-vars.yml, but no effect.
I'm not sure this will have effect in server-yaml, since this is not an ANSIBLE variable, but rather a django settings.FEATURES setting (i.e. see: https://github.com/edx/edx-platform/search?q=PREVIEW_LMS_BASE&type=Code for the spattering of examples).Also - I don't imagine you want to use IP addresses, rather DNS names.Reasons are multiple, but mostly that between nginx and gnunicorn, I think everything is served for localhost, and rewritten to the outside by gnunicorn (I don't have experience w/ setting this up on edx, configuring gnunicorn, but this is what I expect).With "preview" you are internally linking the cms django instance (server), telling it where the lms local instance is.Look at the (for example) devstack or test cms/envs/devstack.py (etc.) files for a pattern, and change your... I forget - were you configured to use cms/envs/dev.py, or cms/envs/aws.py? --- regardless, you should be able to set in aws, since dev includes/ inherits from that (unless you _only_ want it on a dev instance).BTW - as a django settings feature, somewhere "magic" (that is - I haven't yet bothered to exactly trace it out) the /edx/app/edxapp/cms.env.json gets created so as to share the django settings with other things (such as rake commands). At least, that is the "logic" that looks like it must be in place to me...
Any ideas?Thanks,Tom
On Wed, Feb 12, 2014 at 7:49 PM, Yarko Tymciurak <yar...@gmail.com> wrote:
On Wed, Feb 12, 2014 at 12:23 PM, Tom Morten Berge <tomb...@gmail.com> wrote:
Hi,
Got the update script working now. Just as you said, just delete it first.To fix my other problem, I tried to copy the courses.html template to a subfoler in my theme and change it there.How does it know to pick that html file up as oppose to the original one? Do I need to do anything else?
Look at the hints here: https://github.com/edx/configuration/wiki/edX-Managing-the-Production-Stack#wiki-compile-assets-manuallySpecifically, watch the command which rake runs which is a "manage.py" or "django-admin" command;(rake is just a "make" tool which executes commands).You want to orient yourself to what degrees of freedom are available.You will be looking for at least two things, I think:
- gather_assets (rake name) or collect_static (I think that's the django command) only update;
- the path of your theme I expect will be picked-up the various paths to find what it's looking for (courses.html);
- caveat: I'm a bit of a novice here: edx does things a little custom w.r.t. templates / themes;
- look at the command which the rake "gather_assets" runs.
- Mimic it's form - the "lms" and "--settings" parts, but manually run the "--help" (two dashes) option.
- this should list all the available admin commands for lms - look for "clear gathered assets" (or collected)
- I don't know if you need it, but if you run this, you will be sure to have a "fresh, full" gather (i.e. run gather_assets after);
- run rake -T and see if you can find the equivalent "rake" command (it may add / do other things, may be more complete);
The other "cache" which might get in your way will be (of course) the browser cache - be sure to force-reload when you first try to look at your new theme.I tried to copy the html file and then modify the text, ( and then run update), but it seems like it still uses the original courses.html in lms/templates/courseware/courses.htmlthanks again for all your help :)No worries!Happy it seems to be working, happy to able to help.Waiting to hear how this next part works for you.
On Tue, Feb 11, 2014 at 11:44 PM, Yarko Tymciurak <yar...@gmail.com> wrote:
but - again - I don't think you need another repo; I think you can copy this file into your theme (make any subdirectories to templates as needed), and change that copy.
On Feb 13, 2014 9:35 AM, "Tom Morten Berge" <tomb...@gmail.com> wrote:
>
> tried to EDXAPP_PREVIEW_LMS_BASE override you posted in server-vars.yml.
> Is there an easy way to check if this worked?
Since this is a FEATURE setting, I would expect it to show up with the rest if them generated in /edx/app/edxapp/cms.env.json
The definitive way to check would be from a django shell - fire up ./manage.py for cms your appropriate --settings, as user edxapp
Then from that shell, check that PREVIEW_LMS_BASE is appropriately set, not overridden by something else somewhere (that's the setting you really care about).
> I notices the localhost was used in the confirmation link email when register an account. Not sure how to delete an account yet, so was hoping to test this without creating new accounts everytime. Is there a way to resend the confirmation email, that would be one way I guess :)
Not sure how you have mail setup (or not). You could check logs to see if the confirmation showed up there.
> I'm also trying to update the PLATFORM_NAME varaible (probably others to), by running this:
> /edx/app/edxapp/edx-platform$ ./manage.py lms --settings mysettings
>
> mysettings.py is located in lms/envs/mysettings.py and only contains: PLATFORM_NAME="Test Name"
> I think this is how I should override it :)
No.
This is a growing "stack" of accumulating overrides.
At the base is (should be) common.py
Then, look at aws.py - it imports * from common, then adds to or overrides.
Then look at dev.py (or devstack.py - either as an example will do).
Whatever you used before "my settings.py" - follow that same pattern, and build up on that, by the same type of "from dev import *" statement at the top.
That way you build on, rather than replace, all the settings.
Make sense?
There are other ways to go about this, but this should answer your immediate question.
> I get the following error:
> Traceback (most recent call last):
> File "./manage.py", line 90, in <module>
> startup = importlib.import_module(edx_args.startup)
> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
> __import__(name)
> File "/edx/app/edxapp/edx-platform/lms/startup.py", line 5, in <module>
> from django.conf import settings
> ImportError: No module named django.conf
>
> I have no idea about django, so hopefully you have an idea. I get this even when I run --help
You need to run all of these as the edxapp user. See the "compile assets manually" example on
https://github.com/edx/configuration/wiki/edX-Managing-the-Production-Stack
On Feb 13, 2014 9:35 AM, "Tom Morten Berge" <tomb...@gmail.com> wrote:
>
> tried to EDXAPP_PREVIEW_LMS_BASE override you posted in server-vars.yml.
> Is there an easy way to check if this worked?Since this is a FEATURE setting, I would expect it to show up with the rest if them generated in /edx/app/edxapp/cms.env.json
The definitive way to check would be from a django shell - fire up ./manage.py for cms your appropriate --settings, as user edxapp
Then from that shell, check that PREVIEW_LMS_BASE is appropriately set, not overridden by something else somewhere (that's the setting you really care about).
> I notices the localhost was used in the confirmation link email when register an account. Not sure how to delete an account yet, so was hoping to test this without creating new accounts everytime. Is there a way to resend the confirmation email, that would be one way I guess :)
Not sure how you have mail setup (or not). You could check logs to see if the confirmation showed up there.
On Feb 15, 2014 9:00 AM, "Tom Morten Berge" <tomb...@gmail.com> wrote:
>
>
>
>
> On Thu, Feb 13, 2014 at 5:10 PM, Yarko Tymciurak <yar...@gmail.com> wrote:
>>
>>
>> On Feb 13, 2014 9:35 AM, "Tom Morten Berge" <tomb...@gmail.com> wrote:
>> >
>> > tried to EDXAPP_PREVIEW_LMS_BASE override you posted in server-vars.yml.
>> > Is there an easy way to check if this worked?
>>
>> Since this is a FEATURE setting, I would expect it to show up with the rest if them generated in /edx/app/edxapp/cms.env.json
>>
>> The definitive way to check would be from a django shell - fire up ./manage.py for cms your appropriate --settings, as user edxapp
>
> think I have missed something very fundamental :) didn't not realize I had to be logged in as a different user.
> I treid to login as edxapp by doing this: sudo -u edxapp bash
> Then tried to run this command:
> sudo -u www-data python manage.py --settings=aws --service-variant lms help
> I get prompted for a password. How do I know what this is? Is there a default password, can't remeber creating one at least.
> Is the different settings I can use documented anywhere? and what cmd's I can use with a specific setting?
I'm sorry - I think I have mislead you. I mixed up devstack vs. production stack I think.
run rake commands from edxapp use env. Run ./manape.py as shown at top of (note - edxapp doesn't have sudo privileges):
https://github.com/edx/configuration/wiki/edX-Managing-the-Production-Stack
Hello
Have you git cloned the theme-master from github?
Regards,
David Azevedo
collectstatic failed!
If you have your own repo of edx-platform and edx-theme on server-vars.yml ( i tkink) then you can do an upgrade edx-platform and after a edxapp restart ot should work.
David
Try adding PR #2387
Try adding PR #2387
Ok
sudo /edx/bin/update edx-platform master - update edx-platform master
Hi i setup theme and works perfectly in devstack, so i am getting problems with production.I ran deploy until try to run:
Hi Cristian -
On Thursday, March 20, 2014 5:16:44 PM UTC-5, Cristian Salamea wrote:Hi i setup theme and works perfectly in devstack, so i am getting problems with production.I ran deploy until try to run:What are you running this from (full stack-vagrant? full stack native install?) What exactly were the commands that you "ran deploy"? (I'm assuming it must be you are trying to setup a sandbox from an Ubuntu native install).
Yes ! here too i really confused with all, i follow all steps set two PRs named here and works with devstack but prod try to collectstaic running task from assets.rakeWhat i dont know is where paths are setup to debug them.
Hi i setup theme and works perfectly in devstack, so i am getting problems with production.I ran deploy until try to run:TASK: [edxapp | gather static assets with rake] ******************************Then i got an error con collectstatic, django is try to collect from: 'themes/stanford/css/themes/stanford/images/stanford-pano.png'
On Thursday, March 20, 2014 6:43:56 PM UTC-5, Cristian Salamea wrote:Yes ! here too i really confused with all, i follow all steps set two PRs named here and works with devstack but prod try to collectstaic running task from assets.rakeWhat i dont know is where paths are setup to debug them.Two PRs? What two PRs?
it is hard to know how to help without knowing what you did to result in this...
On Thursday, March 20, 2014 5:16:44 PM UTC-5, Cristian Salamea wrote:Hi i setup theme and works perfectly in devstack, so i am getting problems with production.I ran deploy until try to run:TASK: [edxapp | gather static assets with rake] ******************************Then i got an error con collectstatic, django is try to collect from: 'themes/stanford/css/themes/stanford/images/stanford-pano.png'You need to debug this - find how this came to be. If you are using rake of the update script, you can add the verbose flag,
On Mar 20, 2014 10:05 PM, "Ovnicraft" <ovni...@gmail.com> wrote:
>
>
>
> http://beta.evex.iaen.edu.ec/static/themes/stanford/images/stanford-pano.cc6fbc8848d9.jpgOn Thu, Mar 20, 2014 at 9:57 PM, Yarko Tymciurak <yar...@gmail.com> wrote:
>>
>> Hi Cristian -
>>
>>
>> On Thursday, March 20, 2014 5:16:44 PM UTC-5, Cristian Salamea wrote:
>>>
>>> Hi i setup theme and works perfectly in devstack, so i am getting problems with production.
>>>
>>> I ran deploy until try to run:
>>
>>
>> What are you running this from (full stack-vagrant? full stack native install?) What exactly were the commands that you "ran deploy"? (I'm assuming it must be you are trying to setup a sandbox from an Ubuntu native install).
>
>
> I run ansible-playboook, with vagrant-fullstack.yml
I see. Why don't you try - for now - to use update.
Use the server-vars.yml to set your repositories (you can see example variables to use in https://gist.github.com/yarko/8818633).
Any success deploying a custom theme to production? Like Cristian, I was able to deploy my updated theme to devstack. I will say that I did have to manually update the envs variable to specify custom-theme true and the theme name. The push.envs.sh did not work for me. I have not traced the problem but at least I was able to bring up the customized theme.In the case of production, I started with a new Ubuntu 12.04 instance in VMWare. I made some updates to edx-platform that I will check in later and merged in Yarko's pull for fixes to the assets pipeline to include the custom theme artifacts. I added these overrides to the server-vars.yml file and specified it as extra variables in the call to ansible-playbook:sudo ansible-playbook -c local ./edx_sandbox.yml -i "localhost," -e /edx/var/edx_ansible/server-vars.yml
On Mar 25, 2014 9:19 AM, "Ovnicraft" <ovni...@gmail.com> wrote:
>
>
>
>
> On Mon, Mar 24, 2014 at 6:52 PM, Ray Hooker <ray.h...@gmail.com> wrote:
>>
>> Any success deploying a custom theme to production? Like Cristian, I was able to deploy my updated theme to devstack. I will say that I did have to manually update the envs variable to specify custom-theme true and the theme name. The push.envs.sh did not work for me. I have not traced the problem but at least I was able to bring up the customized theme.
>>
>> In the case of production, I started with a new Ubuntu 12.04 instance in VMWare. I made some updates to edx-platform that I will check in later and merged in Yarko's pull for fixes to the assets pipeline to include the custom theme artifacts. I added these overrides to the server-vars.yml file and specified it as extra variables in the call to ansible-playbook:
Read up on form of ansible - playbook options: to specify an extra-vars file, it needs to be as I've changed (note '@'):
>> sudo ansible-playbook -c local ./edx_sandbox.yml -i "localhost," -e "@/edx/var/edx_ansible/server-vars.yml"
>
>
> Hi in my case, problem was code in theme we update with stanford and now works ok everything soon we will deploy the machine.
There is a small thing between edx-platform & Stanford's edx-theme repository - it will affect the image on homepage, but more importantly it informs of a pattern to use:
https://github.com/Stanford-Online/edx-theme/pull/4
OPENEDX_RELEASE=aspen.1 wget https://raw.githubusercontent.com/edx/configuration/master/util/install/vagrant.sh -O - | bashAdd the following lines to /edx/app/edx_ansible/server-vars.yml
edxapp_use_custom_theme: true
edxapp_theme_name: 'default'
edxapp_theme_source_repo: 'https://github.com/Stanford-Online/edx-theme.git'
edxapp_theme_version: 'HEAD'Step: 5
Run the provisioning scripts - sudo /edx/bin/update edx-platform release
Error: - I am getting the following error and build fails
TASK: [edxapp | gather static assets with paver] *****************************
changed: [localhost] => (item=lms)
failed: [localhost] => (item=cms) => {"changed": true, "cmd": "SERVICE_VARIANT=cms paver update_assets cms --settings=aws ", "delta": "0:05:29.794875", "end": "2015-01-25 18:32:50.124015", "item": "cms", "rc": 1, "start": "2015-01-25 18:27:20.329140"}
Hi,Just installed Edx on an EC2 instance today. And finally looks to be working. :) Looking really good!I'm pretty new to this, but I have manged to setup a class. Now I was wondering if there is a way to change the EdX logo? Also is there a way to remove the demo course that is there, or atleast hide it?Also there are some footer links (like job, press, faq), is there a way to modify/remove these?So far I have been looking at the manual found here: http://edx.readthedocs.org/projects/ca/en/latest/read_me.htmlMaybe the answers are in there, might just not have found them yet. If not, is there any other resources out there?Thanks,tom
--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/745653be-362a-4172-b194-5bd480cfb045%40googlegroups.com.