Skip to content
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

Provide some documentation for common V1 operations #106

Closed
kopeboy opened this issue Jul 30, 2014 · 18 comments
Closed

Provide some documentation for common V1 operations #106

kopeboy opened this issue Jul 30, 2014 · 18 comments
Assignees
Milestone

Comments

@kopeboy
Copy link

kopeboy commented Jul 30, 2014

I cd to my site (kalabox/www/mysite) and run drush en a_module:
"Command pm-enable needs a higher bootstrap level to run ..."

I searched online and in your wiki but couldn't find a guide to use drush, only Terminatur for a Pantheon-downloaded site. What if I want to use drush on a local site, and later upload the site to Pantheon?

Instead, drush dl a_module works

@pirog
Copy link
Contributor

pirog commented Jul 30, 2014

using drush should be the same. have you checked this out at all?
https://www.drupal.org/node/757386

@pirog pirog added the 1.x label Jul 30, 2014
@kopeboy
Copy link
Author

kopeboy commented Jul 30, 2014

Yes I checked that and tried all propesed solutions without success. There are many different posts spanning 4 years and I am not sure will apply to the Kalabox stack or my mac configuration (I had worked also with bitnami-drupal recently, maybe something is conflicting upon drush?).

Solution #4 & #6 & #7 : I cd to /Users/me/kalabox/www/mysite and run drush en mymodule there, isn't that correct? Also doing cd /Users/me/kalabox/www/mysite/sites/all/modules and drush -y en mymodule o drush en mymodule returns the same error.
Solution #8 : run those commands and/or edited 'localhost' to '127.0.0.1' in settings.php, no success.
Solution #10 : edited bash-profile like suggested, nothing changed.

Should I mention my bash.profile is like this:
. ~/.bashrc
source ~/.profile
export PATH=/usr/local/bin:$PATH
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM$
export PATH=/Applications/MAMP/Library/bin/:$PATH

and that when I run drush en mymodule the error returns also this:

Drush was attempting to connect to:
Drupal version : 7.30
Site URI : http://default
Database driver : mysql
Database username : root
Database name : mysite_kala
Default theme : garland
Administration theme : garland
PHP executable : /usr/bin/php
PHP configuration :
PHP OS : Darwin
Drush version : 6.2.0
Drush configuration :
Drush alias files : /Users/me/.drush/pantheon.aliases.drushrc.php
Drupal root : /Users/me/kalabox/www/mysite
Site path : sites/default
File directory path : sites/default/files

@pirog
Copy link
Contributor

pirog commented Jul 30, 2014

ohhhh i see what you are doing. so you can def run drush externally on your mac but you may need to create better aliases to help facilitate that.

generally when i run drush i will click on the ssh button the kalabox dash and run commands from there. the sites are in /var/www.

@kopeboy
Copy link
Author

kopeboy commented Jul 30, 2014

I don't have a www folder inside /var ... :O

If I click on the SSH button what should I do next? Typing ls I can only see one of my sites which was created on Pantheon.

Thanks for you support :(

@pirog
Copy link
Contributor

pirog commented Jul 30, 2014

/var/www should be be in kalabox so you will need to click SSH first. Once
you get in do something like

cd /var/www
ls -lsa

To see call your sites and then you can just cd into a site and you should
be able to use your drush commands right there.

On Wed, Jul 30, 2014 at 4:57 PM, Lorenzo Giovenali <[email protected]

wrote:

I don't have a www folder inside /var ... :O

If I click on the SSH button what should I do next? Typing ls give I can
only see one of my sites which was created on Pantheon.

Thansk for you support :(


Reply to this email directly or view it on GitHub
#106 (comment).

Cheers,

Mike Pirog
Kalamuna
www.kalamuna.com

@kopeboy
Copy link
Author

kopeboy commented Jul 30, 2014

Finally! Thanks a lot man! How can I send you a free beer?

@pirog
Copy link
Contributor

pirog commented Jul 30, 2014

🍺 :)

@kopeboy
Copy link
Author

kopeboy commented Jul 30, 2014

🍻

@pirog
Copy link
Contributor

pirog commented Jul 30, 2014

3 > 1 for sure!

@pirog pirog closed this as completed Jul 30, 2014
@pirog
Copy link
Contributor

pirog commented Jul 30, 2014

oh wait is that actually 2? i must be drunk already.

@kopeboy
Copy link
Author

kopeboy commented Jul 30, 2014

Ok, I am very sorry for having spammed in your issue queue lately. I think you really need to write some documentation for 'noobs' like me, and I would like to help but I don't think I am the right one to do it :(
Enjoy the beers (11pm here)

@pirog
Copy link
Contributor

pirog commented Jul 31, 2014

No worries! Issue reports make the project better for everybody. If you want to list maybe the top five things that would be good for us to include in documentation that would be super helpful!

@kopeboy
Copy link
Author

kopeboy commented Jul 31, 2014

I would start with:

  1. How to use drush (from SSH and CDing in the right directory)

  2. How to export my kalabox site (especially on Pantheon): you can download with 1 click from Pantheon but how do you upload back? And what to do if instead the site was created on Kalabox? Something has been written here http://helpdesk.getpantheon.com/customer/portal/articles/361251 but the mysql dump doesn't work out of the box

Will update when I find more difficulties :)

@pirog
Copy link
Contributor

pirog commented Jul 31, 2014

Perfect! That is all really helpful.

I'm going to change the issue here and open to reflect the need for documentation and hopefully we can get someone on this ASAP!

@pirog pirog reopened this Jul 31, 2014
@pirog pirog changed the title Drush: Command pm-enable needs a higher bootstrap level Provide some documentation for common V1 operations Jul 31, 2014
@pirog pirog added this to the 1.0-beta9 milestone Jul 31, 2014
@pirog
Copy link
Contributor

pirog commented Jul 31, 2014

@reynoldsalec @andrewmallis wont be around tomorrow for comday but this should be a priority and shouldnt take too long!

I would start with:

  1. How to use drush (from SSH and CDing in the right directory)

  2. How to export my kalabox site (especially on Pantheon): you can download with 1 click from Pantheon but how do you upload back? And what to do if instead the site was created on Kalabox? Something has been written here http://helpdesk.getpantheon.com/customer/portal/articles/361251 but the mysql dump doesn't work out of the box

Will update when I find more difficulties :)

@reynoldsalec
Copy link
Contributor

Temporarily assigning to @andrewmallis, let me know if you don't have time for this and I'll knock it out.

@reynoldsalec
Copy link
Contributor

Provided drush instructions, need to write up some Pantheon export instructions: https://github.com/kalamuna/kalabox/wiki/Using-Kalabox-V1:-Drush---Exporting-Sites

@pirog
Copy link
Contributor

pirog commented Aug 2, 2014

Awesome! @kopeboy feel free to review all these docs we are posting to make sure they are helpful!

@pirog pirog removed the 1.x label Aug 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants