I am trying to setup a continuous integration environment using Ubuntu VM on Amazon EC2 (which has rails installed already) and Jenkins. But Jenkins creates its own user on the VM and cannot find the rails path because its in the other user's environment.
So can someone provide me a step by step installation guideline for the same.
Thanks
Related
I am new to Ruby on Rails. My questions is:
Is it possible to setup Redmine and install the plugins on my local machine (macOS Sierra), test the Redmine application on localhost, once everything has been done successfully, then only deploy it on a Linux server?
If it is possible, which part of the code should I modify in order to deploy it on Linux server successfully? (Both of my local machine and Linux server are running MySQL database)
Yes it is possible and you don't need to change any part of the Redmine code to do so. Deployment of Rails apps is often done with a tool called Capistrano (http://capistranorb.com/), which executes through ssh on your server, checks out the code and does any additional installation steps necessary. This approach requires you to have your app (Redmine and plugins in your case) in a git repository (or subversion etc). In the simplest case, fork redmine on github and add any plugins as git submodules.
As you're unfamiliar with the platform I'd suggest to start with a simple rails app that you create locally. once you have worked out deployment of that to a remote server, tackle Redmine.
Sounds like a lot of upfront effort but it's worth it since it enables you to work on your local machine, make changes and then deploy the changed code with a single command.
If the Redmine installation on your local host has the same installation path as on the production server, then you can just copy the installation files to the production server. You will also have to copy the database to the production server.
If the installation path is different on your local host and production server, then you will have to install the Redmine and plugin on your production server
since digital ocean is linux-based and i'm using a windows laptop, the only way to deploy rails apps is using VM to boot Ubuntu OS and deploy from there?
I think you could use Dokku to deploy from command line (With git).
More informations here
DigitalOcean has a "One-Click Rails application" feature that would setup the whole environment for you. As the post explains, it works with Windows OS as well.
Also, Google has tons of suggestions on how to do it.
Using 'Click to Deploy', I already deployed LAMP stack.
Now i want to use 'Click to deploy'and then deploy Jenkins in the same GCE instance(dont want another fresh GCE instance)
Is there an option to use 'Click to deploy' for multiple tools or only once per GCE instance?
What is the best approach to install multiple tools using Click to deploy or Google Launcher under single Google Compute Engine instance?
Plz someone help!
Bitnami developer here.
Right now you can't use "click to deploy" twice in the same GCE instance.
You could access your instance via ssh, download bitnami jenkins stack and install it. Take into account that you'll be installing another apache server so you won't be able to use port 80 again (as well as with mysql).
I've searched the whole internet for this. I have a website that is run by a hosting company. All the tutorials to install Jenkins assume I'm running my own Linux machine and can perform various commands.
Is there a way I can install Jenkins on this website using only FTP?
Thanks.
Maybe. If your hosting company provides Tomcat (or another servlet container/J2EE server like JBoss) then you can install Jenkins as a webapp inside of Tomcat. Typically it just involves placing the jenkins.war file in $TOMCAT_BASE/webapps.
If your hosting company does not provide Tomcat and doesn't allow you to run Java yourself from a shell then AFAIK you can't run Jenkins.
Does anyone have done the rails application deployment on EC2 using poolpary gems and Chef server(not Chef solo). Please share your experiences if you know some blogs or code links(except poolpartyrb.com and related to it).
The poolparty script must be able to launch an selected AMI instance with two EBS blocks(data and DB) use one elastic ip,fetch code repo and install Chef server on selected instance. Or if you have used Chef server for rails deployment please share your exp.
Thanks,
Pravin
How far did you get with your pool party script?
launching EC2 instances is explained in this detailed example
the EBS part is explained in this github issue
to deploy an application from git, use chef's deploy resource
installing chef is done using gem install chef
Maybe you can share what you have and where exactly you're currently stuck.