-
Notifications
You must be signed in to change notification settings - Fork 217
Configuration files not created on Mac OSX Mavericks #332
Comments
Never mind I fixed it. Meanwhile i discovered Deployer which also seems nice, and nearly went for it, considering I found other bug reports of this, from 8 days ago and it was updated, but the phar was never re-uploaded. Whatever, it's opensource and stuff happens. For anybody wanting to fix this themselves, they should clone / zip download, the develop branch, and cd into the bin directory inside, and run php compile (or just ./compile). This will create a nice rocketeer.phar file, which they can then move to /usr/local/bin/rocketeer and chmod 755. Voila, it's fixed! I've uploaded the file on mirrorupload in case you are lazy, and trust me (you can do that): |
Well actually the PHAR should be up to date, this means the bug might not be fixed. |
Well.. I was too fast on the trigger. It will create the config files now, but when I run any other command, it will not load them and will just keep telling me to setup my connections, using the wizard. I can understand you are the primary guy @Anahkiasen ? Take my Skype and Email and I will help you track it down. Or if you don't have time, could you point me in the general direction? (I'm totally new at this tool) - I feel like bug hunting! 😸 |
+1 having the same issue with the .phar |
@zupolgec Try and download mine, or follow my instructions to compile it. It should work, at least to create the folder. I'm trying to get an impression of the tool right now, and hunt this bug down. Damn I hope it's worth it... |
Yep, compiling from repo works for me! Thanks @HSPSoftware |
@zupolgec Don't be too fast. It might create the configuration files, but will it find them and use them? Cause it will not for me! 😢 |
If the PHAR is not working what I'd recommend instead is just doing |
@Anahkiasen I'm not sure we understand each other. I get a new error now. The .rocketeer/ folder is created. But now, when I run any command (e.g. rocketeer deploy), it just ignores the folder, and gives me that wizard once more, to fill everything in. If I do it again, it updates the .rocketeer/ folder, but it will not use it, no matter what I do. I haven't changed anything inside the source code yet, but I'm about too. It's a pretty big project, so I'm currently tracking everything down. Currently I'm hunting inside the ConnectionsHandler. As far as I can tell, the configuration files are being loaded, but some statement somewhere is going wrong, and causing them to be ignored. I will post back when I find something new, or if any of you have some input on this. |
Can you do just |
I don't understand what you want me to do. I've tried to var_dump (old school!) every place it loads it's configuration, and the results of that, and it seems to be performing like it should. I'm looking at CredentialsGatherer.php right now, on line 65. $availableConnections is non-empty, and gets the credentials from my configuration as it should. I suspect $activeConnections is somehow returning something which evaluates to false. Could you help me out? |
Yup. Inside ConnectionHandler.php, in getConnections() The $connections variable is just:
And $default is equal to NULL. This is where the bug is started, as the return value will then make the if() inside CredentialsGatherer.php (line 65) fail.. Could you explain why this is happening? I will continue hunting.. |
I mean like, type
|
|
Well weird, that's correct. So it's more of a configuration issue in the connections than a folder issue indeed. Can you show me your |
|
Shouldn't |
@HSPSoftware I tried with the compiled phar and it works. The only question I get is |
It doesn't make a difference as far as I can tell. I don't know why they missmatch, as I haven't changed this manually. Is this another bug? Let's not worry about that for now! Let me just try and re ignite my directory. IF @zupolgec is right and you @Anahkiasen can't see the problem, it might be me who have fucked up. |
Okay that's scare. Where do it store it's global configuration? I just deleted the entire .rocketeer folder inside my test directory, and ran my modified debugging version, and it dumped out a lot of my testing date, so maybe some global state is fucking with me? |
There is a global storage in |
Thank you! The line I changed should probably go into the project source, I'm just too lazy to do a pull request and all that, it's not often I'm in the Opensource environment. |
I just followed the guide and installed it globally using the command, which used curl.
Now I'm attempting to "ignite" my test directory and no matter what I do, it keeps telling me the configuration has been created but it does not exist!
How is this happening? I'm pretty sure it's a bug, as I've also tried the "loca to the folderl" version, and both the local and global composer versions. Nothing works! It keeps telling me the files are there, but they are not.
(I've shutdown the droplet and created another one - just a quick one to try it out so no worries)
Also your documentation seems a little bit frustrating. I will help write something more friendly when I get up and running myself.. I'm so tired of Capistrano that you wouldn't even believe, so please help me get away!! 😨
The text was updated successfully, but these errors were encountered: