Open whobutsb opened 12 years ago
Hi,
Glad you like it!
I'm currently just leaving them where they're extracted when the app is deployed - /tmp/php-elasticbeanstalk...(can't remember exact path). That's where the HostManager app expects them to be when it tries to invoke them.
This probably isn't the best practice, since they would be lost on a reboot when /tmp is cleared, but rebooting an instance shouldn't really happen in this workflow either. I haven't had any problems yet...(knocking on wooden desk).
If this is problematic, we can just decide on a specific directory in which to store the scripts after a deployment.
Thanks for the reply! i'm actually starting to experiment with the hostmanager and adding in my own hooks for pre-deploy, post-deploy, etc. And your tool seems to be perfect. I would recommend adding the scripts maybe in to their own directory maybe somewhere like /var/www/html/hostmanager or something like that.
I'm still having trouble deploying your code. Would you happen to have any more instructions on deploying and using your code?
Thanks! Steve
On Wed, Aug 15, 2012 at 2:32 PM, Will Kelleher notifications@github.comwrote:
Hi,
Glad you like it!
I'm currently just leaving them where they're extracted when the app is deployed - /tmp/php-elasticbeanstalk...(can't remember exact path). That's where the HostManager app expects them to be when it tries to invoke them.
This probably isn't the best practice, since they would be lost on a reboot when /tmp is cleared, but rebooting an instance shouldn't really happen in this workflow either. I haven't had any problems yet...(knocking on wooden desk).
If this is problematic, we can just decide on a specific directory in which to store the scripts after a deployment.
— Reply to this email directly or view it on GitHubhttps://github.com/Nuvixa/hostmanager/issues/1#issuecomment-7768305.
Steve Barbera whobutsb@gmail.com
Ok, I'll push some changes to move those scripts to a more durable location.
What sort of problems are you having when you try to deploy this? You should just have to:
wget https://github.com/Nuvixa/hostmanager/zipball/master
chmod +x deploy.sh
sudo ./deploy.sh
will do the restIf that's not working, please send a detailed description of what you're trying and how it's failing.
Thank you Will. I'll give you directions a try and see how it goes.
Steve
On Wed, Aug 15, 2012 at 2:45 PM, Will Kelleher notifications@github.comwrote:
Ok, I'll push some changes to move those scripts to a more durable location.
What sort of problems are you having when you try to deploy this? You should just have to:
- Launch an EC2 instance with whatever the current PHP AMI is
- SSH in to that instance
- wget a zipball of this package ( https://github.com/Nuvixa/hostmanager/zipball/master)
- unzip the file (probably called "master" with no extension)
- cd inside the extracted directory
- 'chmod +x deploy.sh'
- sudo ./deploy.sh will do the rest
If that's not working, please send a detailed description of what you're trying and how it's failing.
— Reply to this email directly or view it on GitHubhttps://github.com/Nuvixa/hostmanager/issues/1#issuecomment-7768668.
Steve Barbera whobutsb@gmail.com
Hi Will,
Just to let you know, I followed your instructions on installing the hostmanager but now whenever I try to push my GIT changes to my environment I receive these messages in the events log:
Version git-99f9e1bf3cf39c801f2c98fe25c4c5197f86e84c deployment failed. - The following 1 instance(s) did not deploy: i-xxxxxbe - Still attempting to deploy version git-99f9e1bf3cf39c801f2c98fe25c4c5197f86e84c.
Do you know of a place where I can see system logs that would lead to why i'm receiving these error messages? Also do you know what user the system runs on when it runs these hooks with hostmanager? Ultimately I have a folder that I would like updated with a Git Clone command.
Thanks for the help.
On Wed, Aug 15, 2012 at 2:47 PM, Steve Barbera whobutsb@gmail.com wrote:
Thank you Will. I'll give you directions a try and see how it goes.
Steve
On Wed, Aug 15, 2012 at 2:45 PM, Will Kelleher notifications@github.comwrote:
Ok, I'll push some changes to move those scripts to a more durable location.
What sort of problems are you having when you try to deploy this? You should just have to:
- Launch an EC2 instance with whatever the current PHP AMI is
- SSH in to that instance
- wget a zipball of this package ( https://github.com/Nuvixa/hostmanager/zipball/master)
- unzip the file (probably called "master" with no extension)
- cd inside the extracted directory
- 'chmod +x deploy.sh'
- sudo ./deploy.sh will do the rest
If that's not working, please send a detailed description of what you're trying and how it's failing.
— Reply to this email directly or view it on GitHubhttps://github.com/Nuvixa/hostmanager/issues/1#issuecomment-7768668.
Steve Barbera whobutsb@gmail.com
Steve Barbera whobutsb@gmail.com
Steve,
Take a look at /opt/elasticbeanstalk/var/log/hostmanager.log - this is where HostManager will display errors.
Hi there, Just wanted to say thank you for releasing this hostmanager packager, I can see it working out really well for maintaining my Beanstalk instances. One question:
After deploying the hostmanager on to my instance where do you place the deploy.sh, startup.sh, etc scripts on your system? Do you create a new directory in /var/ww/html? or is there somewhere in the /opt/elasticbeanstalk directory you place these scripts.
Thank you for the help.