-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update Vagrant and Readme so the development environment actually works. #3
Comments
It is included—you just need to rename |
I should mention that the project has undergone a great deal of modifications since the last tagged release! I'll take a few minutes to amend the The obstacles that I've been having a heck of a time overcoming aren't actually getting The State Decoded running within Vagrant, it's getting Vagrant configured to get to the point where it's possible to do that! :) Once somebody can run |
Ok, I will start working on that. Later tonight |
That'll give me to find other dumb oversights I've made. :) |
Ok, I dove into this using both the readme and the docs you linked to forge ahead. I checked out v0.7 and used that as stable branch. After acouple hours I couldn't quite get the parser to do everything it should, but I have some ideas on how to move forward. I am recording all of the things that need tweaking + all of the gotchas. Anyways onto some substance: Currently when I try to run the parser it breaks on "generating structural statistics" I think this is because I did not specify these constants in
Here is a gist of my current file Its worth noting that, I do not see any records persisting in mysql, and at this point in the code we are clearly querying for records. So maybe it is a deeper mysql problem. Any help is appreciated. |
Just so that I can be working off the same page as you, how did you deal with the problems presented by #1 and #2? #1, in particular, has been a deal-breaker for me—firing up an instance of Vagrant with this configuration doesn't let me punch through to any hosted HTML. Once I can duplicate your setup, I'll be more useful. More important than that, once I can get those two basic problems solved, I think it becomes pretty easily to wrap this up! |
For Issue #1 I disabled the Another problem I noticed is that when you set /var/www/ as the shared folder you lose the ability to modify owernship of directories, but not files, which may be a problem specific to my setup. Consequently I moved the shared folder off of /var/www/. Here is the gist of my new Vagrantfile |
I'm going to try this out tomorrow (I note we're on opposite schedules :), but your solution makes perfect sense. I probably shouldn't have let myself get hung up on having a development hostname—there are surely worse things than having people enter an IP address. :) |
Ok, hopefully when you get to where I am stuck there is a simple solution. |
Sorry for the delay here—I'm trying to figure out how to disable |
Waldo that is something I would be happy to figure out how to do. I was planning on branching the current repo making a bunch of changes and the pulling them back in this weekend. If you let me worry about puppet for the next week, I will get it usable and well documented. But if you can solve these problems now then by all means! |
Well, that's certainly not something I'm inclined to argue with. :) Thanks, Nick! |
I just need to know if the problem I am having with the parser failing at generating structural statistics is due to misconfiguration of my setup, which I think it is because I have not defined all of the variables in config.inc.php. So what needs to change here? *********Also I am using the virginia xml files |
I don't think you're doing anything wrong—your config file looks fine. I'm not quite sure what's going wrong, but I've got a work-around for now—we'll just skip running $parser->parse();
$parser->write_api_key();
$parser->export();
$parser->structural_stats_generate();
$parser->clear_apc();
$parser->prune_views(); You can just delete |
I figured it out. The code was in xml/code/ instead of just xml. Forgot to unpack the directory X_X... I will add a test case to check for this. |
Ah, I've done that myself. :) The version under development (the UI branch) adds a couple of dozen tests, including making sure that the import data is present, which I hope will prevent this for others. Sorry about that! |
I just started trying to get this working on my machine. The main problem right now is that a file config.inc.php (for phpmyadmin I assume) is not included in the statedecoded repository. There needs to be an example one included either in this repository or the main php with the nessecary constants filled out. Waldo could you sanitisize yours and push into this repo?
The text was updated successfully, but these errors were encountered: