These are chat archives for openworm/ChannelWorm

16th
Jun 2015
Joe Bowen
@joebowen
Jun 16 2015 01:42
So I've made some progress and was able to condense the folder structure down. Right now I'm getting an error on the main page. Instead of looking at /, it seems to be looking at application/.
Travis Jacobs
@travs
Jun 16 2015 12:11

@VahidGh @miladjafary @slarson

Vahid and Milad's comments on the adapter indicate we need some more discussion on this.
I'm sending out a poll now for another meeting on data modelling!

@joebowen Ok, so does that mean we need to have a top-level application directory?
Joe Bowen
@joebowen
Jun 16 2015 12:13
I'm not really sure. When you go to /, it should point to /, not application/. But I'm not sure what setting is causing that.
Travis Jacobs
@travs
Jun 16 2015 12:17
Hmmm
And can you navigate to other URLs?
Joe Bowen
@joebowen
Jun 16 2015 12:17
I guess we could change the url.py so that, for example, ^index is instead ^application/index... but that seems hacky
Travis Jacobs
@travs
Jun 16 2015 12:17
Like if you go to /digitizer or something?
Joe Bowen
@joebowen
Jun 16 2015 12:17
nope, it's always prepending application to it
Travis Jacobs
@travs
Jun 16 2015 12:17
yeah, I agree
ahh ok
I wonder is it controlled from here?
I'd be interested to know what application = get_wsgi_application() returns if it is
Joe Bowen
@joebowen
Jun 16 2015 12:19
that file shouldn't be getting called
Travis Jacobs
@travs
Jun 16 2015 12:19
Ok
Can you point me to a part of the openshift stack? I'm not really sure where it starts haha
Joe Bowen
@joebowen
Jun 16 2015 12:20
so I'm confused... where's the branch I was working on last night?
Travis Jacobs
@travs
Jun 16 2015 12:20
Oh it was on another branch? And the branch is gone? Let me see
Joe Bowen
@joebowen
Jun 16 2015 12:20
give me a second to get the name of the branch
Travis Jacobs
@travs
Jun 16 2015 12:21
ok
Joe Bowen
@joebowen
Jun 16 2015 12:21
change_web_app_package_name#65
Travis Jacobs
@travs
Jun 16 2015 12:24
hrmmmmm
maybe it got deleted when #65 was closed
you have it cloned locally though right?
Joe Bowen
@joebowen
Jun 16 2015 12:25
yea
lets start another branch where I can dump this and we can work on it.
or do we have a branch that this would be appropriate?
Travis Jacobs
@travs
Jun 16 2015 12:27
No that's a good idea, let's make a new one for this
and a new issue
Joe Bowen
@joebowen
Jun 16 2015 12:27
ok
we have a branch called webSite?
Travis Jacobs
@travs
Jun 16 2015 12:28
Yeah I'm not sure what that's being used for
Joe Bowen
@joebowen
Jun 16 2015 12:29
ok. Lets see if I can create an issue and a branch for it... never done that before.
Travis Jacobs
@travs
Jun 16 2015 12:29
Alright :)
Are you using the terminal or the github gui app?
Joe Bowen
@joebowen
Jun 16 2015 12:30
the web app
or the terminal, I suppose... I have both, depending on what directions you have
Travis Jacobs
@travs
Jun 16 2015 12:30
Ok, let's go with what you're used to using
So the web app
Alright so pushing a branch
Actually first let's make the issue
Joe Bowen
@joebowen
Jun 16 2015 12:31
ok
Travis Jacobs
@travs
Jun 16 2015 12:32
Just go to the issues page and hit new issue
Actually you probably know how to make an issue already
Yes you do, I can see some you're raised ok. Sorry haha
Joe Bowen
@joebowen
Jun 16 2015 12:34
lol, yea working on writing that up.
but no clue how to attach a branch to it...
VahidGh/ChannelWorm#79
created...
Travis Jacobs
@travs
Jun 16 2015 12:35
Ok, yeah the only way I reference issues from branches is with the branch name haha, so like fix-name#79 or something
And I don't think we can do that from the web app
So let's go with the terminal
Joe Bowen
@joebowen
Jun 16 2015 12:37
ok
Travis Jacobs
@travs
Jun 16 2015 12:37
I'm wondering how familiar you are with it
the terminal I mean
Joe Bowen
@joebowen
Jun 16 2015 12:38
very familiar with terminals in general but only slightly familiar with basic git commands
Travis Jacobs
@travs
Jun 16 2015 12:38
ok perfect
so just go to the channelworm directory
check what branch you're on with git branch
Joe Bowen
@joebowen
Jun 16 2015 12:39
ok, master
Travis Jacobs
@travs
Jun 16 2015 12:39
Ok, so let's get to the one we're trying to push
what is the name of that one?
Joe Bowen
@joebowen
Jun 16 2015 12:40
I don't think we've created a name yet... we can go with webappreorg#79
Travis Jacobs
@travs
Jun 16 2015 12:40
ok sounds good
but the contents we want to push are on master now?
i mean, your local master
Joe Bowen
@joebowen
Jun 16 2015 12:41
the contents are gonna have to be copied in from another repo. I figure that I create the branch with a copy of the master, then modify
Travis Jacobs
@travs
Jun 16 2015 12:42
Ohhh ok gotcha
yeah, so to make the branch just do git branch webappreorg#79
then to get on the branch do git checkout webappreorg#79
Joe Bowen
@joebowen
Jun 16 2015 12:43
ok
Travis Jacobs
@travs
Jun 16 2015 12:43
and to make the branch on github you need to have github as a remote, so let 's see what remotes you have set up
do git remote -v
Travis Jacobs
@travs
Jun 16 2015 12:44
perfect
so you should be able to do git push origin webappreorg#79 if you have write perms to the repo
if not we can fork and do it that way
Joe Bowen
@joebowen
Jun 16 2015 12:46
looks good... so now I just copy in the files and do git push origin webappreorg#79 after the usual git add and git commit?
Travis Jacobs
@travs
Jun 16 2015 12:47
yep :)
Joe Bowen
@joebowen
Jun 16 2015 12:47
cool, let me get it back to last night and we can take a look at that issue
Travis Jacobs
@travs
Jun 16 2015 12:47
absolutely
Joe Bowen
@joebowen
Jun 16 2015 12:53
Ok, so I checked it in. I stuck everything in a folder called django. Let me know if we should change that folder name, that's used in the openshift cron script.
Still having the application issue, but it's now tied with the cron to the server and github.
*the cron job
Travis Jacobs
@travs
Jun 16 2015 12:56
Ok, it seems like we're using channelworm(VahidGh/ChannelWorm#65) as the directory now
but let's keep them separate for now, then move the essential contents over to channelworm from django after
Joe Bowen
@joebowen
Jun 16 2015 12:57
that works
Travis Jacobs
@travs
Jun 16 2015 12:57
so what does openshift really need in order to do anything?
Joe Bowen
@joebowen
Jun 16 2015 12:59
the cron script clones the branch and then pulls from the django directory into the runtime/repo directory on the server
Travis Jacobs
@travs
Jun 16 2015 13:01
ok, and in terms of files/directories?
Joe Bowen
@joebowen
Jun 16 2015 13:03
beyond what @miladjafary built, the setup.py, openshiftlibs.py (I think), requirements.txt, and wsgi files. Along with the .openshift directory.
Travis Jacobs
@travs
Jun 16 2015 13:03
Ok gotcha
I'm just trying to figure out where this could even be going awry
So to be clear, going to the website root (can you link it again :) ) redirects to /applications, correct?
correct. you can see it in the error message. "The current URL, application/"
Travis Jacobs
@travs
Jun 16 2015 13:06
Ah yes
Oook
Joe Bowen
@joebowen
Jun 16 2015 13:08
so the entry point for the app is wsgi. My guess though, the issue might reside in web_app/settings.py but I'm not really sure
Travis Jacobs
@travs
Jun 16 2015 13:09
Ahh, ok
I will clone this locally and run a couple commands on that file, give me one sec
Joe Bowen
@joebowen
Jun 16 2015 13:10
now there is a file web_app/wsgi.py, I'm not positive but I don't think that file is needed.
I think that file gets bypassed when /wsgi calls web_app/settings.py, but I wasn't sure enough to delete it.
Travis Jacobs
@travs
Jun 16 2015 13:14
ok yeah I think you're right
anyway in web_app/wsgi.py it calls channel_worm.settings but there is nothing called channel_worm it seems
Joe Bowen
@joebowen
Jun 16 2015 13:16
yea
ok, as long as you concur, I'll go ahead and delete it.
Travis Jacobs
@travs
Jun 16 2015 13:17
sounds good
and we should commit right now too
after every change, in case we break something. we can easily revert the one breaking change then
Joe Bowen
@joebowen
Jun 16 2015 13:18
yep, just committed it. That way it propagates to the openshift server
Travis Jacobs
@travs
Jun 16 2015 13:20
ok perfect
and it seems like wsgi/ and web_app/ are replicating eachother
but both are added to the path in the wsgi executable:
sys.path.append(os.path.join(os.environ['OPENSHIFT_REPO_DIR'], 'wsgi', 'web_app'))
Joe Bowen
@joebowen
Jun 16 2015 13:22
hmmm
Vahid Ghayoomie
@VahidGh
Jun 16 2015 13:22
@travs, @joebowen, the problem is due to using the old version
checkout a clean one from master and go on based on that
Joe Bowen
@joebowen
Jun 16 2015 13:23
ok
Vahid Ghayoomie
@VahidGh
Jun 16 2015 13:23
channel_worm was in the old one
Joe Bowen
@joebowen
Jun 16 2015 13:24
is web_app the new one?
Vahid Ghayoomie
@VahidGh
Jun 16 2015 13:24
it has replaced with web_app in the new naming
But just let me do another commit
we had another problem with /dist directory
which was being ignored
let me fix this first
Joe Bowen
@joebowen
Jun 16 2015 13:25
ok
Vahid Ghayoomie
@VahidGh
Jun 16 2015 13:30
Now its Ok locally so should have no problem in the OpenShift
Just having a clean checkout from master and adding new configuration files should work and also mergable with the master branch
Joe Bowen
@joebowen
Jun 16 2015 13:32
ok
Vahid Ghayoomie
@VahidGh
Jun 16 2015 13:47
@joebowen, this new branch is not still "forked" from the master, and may cause again some other instability issues
Would you please make a fresh one which is forked from the master with new changes?
Joe Bowen
@joebowen
Jun 16 2015 14:02
sure, I'll have to get to it a little later.
off to work. I'll chat with everyone later.
Travis Jacobs
@travs
Jun 16 2015 14:07
@joebowen Alrighty
Give me a message when you're off and let's get this up! Have a good day :)
Joe Bowen
@joebowen
Jun 16 2015 14:07
Sounds like a plan :-)
Vahid Ghayoomie
@VahidGh
Jun 16 2015 14:14
@joebowen > sure, I'll have to get to it a little later. Great! thanks :)
Joe Bowen
@joebowen
Jun 16 2015 23:20
@VahidGh So I forked the master to here, https://github.com/joebowen/ChannelWorm . I updated everything but am still seeing the application/ error.