bernhard Posted July 7 Share Posted July 7 RockShell v2.0.0 is out. It's been in development for quite a long time and I use it on a daily basis. This module is a little special, as it has to be placed in the PW root folder (not in /site/modules). From there you can then call the shell interface via "php RockShell/rockshell" You can then use the "symlink" command to create a symlink in the root folder. After that you can call rockshell via "php rock" in the pw root folder. I've made it as easy as possible to create custom commands - you only need one config() and one handle() method! https://github.com/baumrock/RockShell/ 7 3 Link to comment Share on other sites More sharing options...
bernhard Posted August 11 Author Share Posted August 11 v2.1.0 is out 😎🚀 v2.1.0 Latest Bug Fixes command db:pull using old syntax (52f78e4) install command not working for dotnetic (2a68b11) rename rockshell to rock everywhere and update readme (2697bd6) Features add DbDownload command (2e91be7) add warning if PHP version is too low (a8caca8) We have a new db:download command and I created an alias for my laptop so that I can simply call "rockshell db:pull staging" instead of "ddev php rock db:pull staging" which is really nice if you use it often. 2 Link to comment Share on other sites More sharing options...
Spinbox Posted November 21 Share Posted November 21 Awesome stuff @bernhard I have incorperated rockshell to my workflow (together with ddev, thanks for that video, just found it). Togerther with RockMigrations they are a great improvement. A thing I noticed it doesn't delete install file and folder (and also non-used site profile, though I'm not sure the default installation deletes these) 1 Link to comment Share on other sites More sharing options...
bernhard Posted November 21 Author Share Posted November 21 Great to hear that, thx for letting me know 🙂 Did you create an alias? That's really great. Then you can simply type "rockshell" and it will execute "ddev php rock ..." 1 Link to comment Share on other sites More sharing options...
Spinbox Posted November 21 Share Posted November 21 Yes, I have added rockshell alias, and a function to make it some less effort to get default setup. function setup_spinbox_project() { # Convert project name to lowercase local project_name=$(echo "$1" | tr '[:upper:]' '[:lower:]') # Check if project name is provided if [[ -z "$project_name" ]]; then echo "Please provide a project name." return 1 fi # Clone the repository and check for success git clone git@gitlab.com:#############################.git "$project_name" if [ $? -ne 0 ]; then echo "Failed to clone the repository. Check your access rights." return 1 fi # Change to the project directory cd "$project_name" || return # Run ddev config ddev config # Automatically add phpMyAdmin to .ddev/config.yaml echo "services:" >> .ddev/config.yaml echo " phpmyadmin:" >> .ddev/config.yaml echo " type: phpmyadmin" >> .ddev/config.yaml echo " port: 8036" >> .ddev/config.yaml # Start ddev ddev start # Run RockShell commands rockshell pw:download rockshell pw:install echo "Setup for $project_name complete." } 1 Link to comment Share on other sites More sharing options...
bernhard Posted November 21 Author Share Posted November 21 Nice 😎 Why are you adding phpmyadmin? Isn't that a ddev default anyhow? 45 minutes ago, Spinbox said: A thing I noticed it doesn't delete install file and folder (and also non-used site profile, though I'm not sure the default installation deletes these) And could you please give me some more details if there's something that should be fixed here? Link to comment Share on other sites More sharing options...
Spinbox Posted November 21 Share Posted November 21 19 minutes ago, bernhard said: Nice 😎 Why are you adding phpmyadmin? Isn't that a ddev default anyhow? 1 hour ago, Spinbox said: It isn't anymore. but the following code can be changed for ddev get ddev/ddev-phpmyadmin # Automatically add phpMyAdmin to .ddev/config.yaml echo "services:" >> .ddev/config.yaml echo " phpmyadmin:" >> .ddev/config.yaml echo " type: phpmyadmin" >> .ddev/config.yaml echo " port: 8036" >> .ddev/config.yaml When you have to choose Timezone you have to set an integer (god knows which), instead of for example Europe/Amsterdam 19 minutes ago, bernhard said: And could you please give me some more details if there's something that should be fixed here? I will try to look into the specifics 1 Link to comment Share on other sites More sharing options...
bernhard Posted November 21 Author Share Posted November 21 Ok thx, I was just curious. I'm not adding phpmyadmin in my setup. I'm always using Adminer that comes with tracy debugger 🙂 1 Link to comment Share on other sites More sharing options...
Spinbox Posted November 22 Share Posted November 22 (edited) It's probably easier to use Adminer (since I also use tracy). I have been using phpmyadmin for so long that I didn't think about alternatives 🙂 I have tried to get the pw:install command working. It looks like the stepAdmin data isn't being saved (url, user credentials,) or executed properly, the install files don't get deleted either. owever, this does work when I use them as options --name=Name etc. Not sure why that is. After some more testing I found out I actually didn't delete the previous databases these tries. My bad. Edited November 23 by Spinbox Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now