How to deploy subdirectory from github with mina?
My master contains
|Dir_name
|Rails-Project
|other stuff
I would like to deploy Rails-Project
I found this question, but without a good answer Deploy subdirectory with mina
Related
I am trying to figure-out the right way to deploy my code from bitbucket to AWS EC2 instance.
Earlier, I was using git clone by having git installed on the EC2 instance and adding that as remote and pushing code to that but this time I am trying to explore codedeploy but I have not seen any documentation which can help me do deploy my code on a particular directory in my EC2.
Thanks
The short answer to your question is Yes, CodeDeploy can help you deploy your code to EC2 in your specified directory.
In CodeDeploy, you can specify the source and destination of a deployment: source means where the file is located in the repo/S3, and destination is the final directory on the instance that the file will be deployed. This part is managed by a config-like file called AppSpec file, see here http://docs.aws.amazon.com/codedeploy/latest/userguide/app-spec-ref.html for details.
General overview of CodeDeploy is here: http://docs.aws.amazon.com/codedeploy/latest/userguide/welcome.html
Hope this helps.
I m using github for hosting my code and AWS Elastic Beanstalk to deploy my project. There is no any relation between them while deploying.
So I have too big compiled bundle.js files. Its automatically compiles in any code changes. Because of that we are getting too many conflicts with my team.
I have disabled them from .gitignore but when I deployed with: eb deploy ElasticBeanstalk doesn't track the bunle.js files as well.
So I'd like to ignore my files only for github but they should be tracked from eb when I use eb deploy.
Is there any solution for this case.
Just create separate .ebignore file:
You can tell the EB CLI to ignore certain files in your project directory with a .ebignore file. This file works like a .gitignore. When you deploy your project directory to Elastic Beanstalk and create a new application version, the EB CLI will not include files specified by the .ebignore in the source bundle that it creates.
Configure the EB CLI
I'm trying to test some changes out on production without having to commit and push the changes because I only want to commit what actually works. The project I'm working on was created with Rails (3.0.2), and deploys with Capistrano (3.1). I've tried making changes in the root folder of my app and redeploying, and the changes are not reflected on the website. I've tried making changes in the root/current directory and redeploying and that didn't work.
Is there any way I can redeploy changes to the server without having to push it to Github first?
Is there any way I can redeploy changes to the server without having
to push it to Github first?
No this isn't possible since one of the first things that Capistrano will do is git clone the latest from whatever branch you've specified in your deploy config.
I'm not sure what your familiarity with Rails is but the proper way to do this would be to create a new staging environment and deploy to that. The staging environment would have similar settings to your production environment with a separate database so that you don't affect production data.
Capistrano 3 supports this flow out of the box so that once you've set everything up you can simply call
cap staging deploy
to deploy to the staging environment, and
cap production deploy
to deploy to the production environment.
I want to setup Elastic Beanstalk for my existing rails application.
I was successful in doing the sample foo app.
These are the questions I have
I need the deployment to happen from my git repository and not from my local path where I am deploying. How do I do that for the sample foo app.
I need to have a before_symlink deploy hook. How can I do this ?
I have addressed these issues.
git aws.push takes all the commited things to git and then deploys it. Local changes are not impacted.
Created a config file under .ebextensions
More here - http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/customize-containers.html
Scenario
Project A is a Rails application:
Code hosted on GitHub on a private repo.
Deployed on Heroku (which has a readonly file system).
Project R that is an instance of Redmine, used to manage my project A:
Code hosted on GitHub on another private repo (same GitHub account).
Deployed on Heroku (which has a readonly file system).
Project CI that is an instance of Integrity, used to continuous integrate (by running tests) my project A:
Code hosted on GitHub on a third private repo (same GitHub account).
Deployed on Heroku (which has a readonly file system).
What I want
I want to be able to:
Use the Repository feature on Redmine on project R (in essence, to be able to see the repository from project R).
Run the tests on CI.
My problem
To clone and keep up to date the code of project A on both project R and project CI.
What I tried
For the 1. point, I've tried to follow the instructions found on http://www.redmine.org/wiki/1/RedmineRepositories, with the only difference that I've created the local bare copy of A into the root of R (because of Heroku's constraints on file system), which caused the creation of /A.git dir.
After that, I've re-deployed on Heroku the project R, and in the Redmine's project A settings I've configured as SCM "Git" and A.git as Path to .git directory (I've also tried ./A.git).
However, when I point to the tab Repository of A project on Redmine, I got a 500 with message:
"The entry or revision was not found in the repository."
Where am I wrong?
Any suggestion?
Thank you!
I think it is currently impossible to integrate Git or Mercurial repos with a Redmine instance running on Heroku due to the read-only filesystem constraint. I asked Eric Davis and he thinks so too. SVN and CVS don't require Redmine to have a local copy of the repo, and so I think they work, whereas Git and Hg don't.