I want to create a website with 'dynamic' pages for a web app. I 'cant' use Node because HostGator charges more for a dedicated server (required for Node apparently). Looking for a solution such as Jekyll or RoR. Does anyone know how to spin up a simple webApp powered by these on an environment like HostGator?
Thanks in advance.
Just build your Jekyll site locally and upload the _site/ directory into your website folder on your shared HostGator folder. You could also use a git repo and push all the files from Jekyll's _site directory to master and then pull them down via ssh on your HostGator website folder. Or create a git hook or other automated way of updating the files.
Should be as easy as uploading a static html site, since that is what Jekyll is.
If you are looking to build a Rails site check out the HostGator guide here http://support.hostgator.com/articles/specialized-help/technical/how-do-i-start-using-ruby-on-rails
Related
A requirement where I need to aad files (Like .txt or .eml) from S3 into the project just before deploying the code into the Heroku server. I can do this on my local machine by creating a commit but in this case, that file will be downloaded into my local machine.
We don't want to download the file into my local machine just wanted to add that file into the project that it can de available during the deployment.
So someone guides me that How to download content from S3 and include it to build slug or package during deployment.
Any help will be highly appreciated.
Thanks
It's a little bit of work, but you could look into implementing your own buildpack for this app. Heroku supports multiple buildpacks that are executed (in order) on your app when your app is built as part of the deploy process, see https://devcenter.heroku.com/articles/buildpacks#creating-a-buildpack for more details. After running the language builpack, your buildpack could download the file, which will then be available to your Dynos when the app has finished building and is being run.
I have the following directory structure:
Which files must I drag into remote site of Filezilla for this ROR project?
When deploying a ROR project you should must use a VPN server. Have you used git for your project? Try to deploy in heroku first. To test your site and have a good practice when deploying rails.
https://devcenter.heroku.com/articles/getting-started-with-rails4
The answer to the question would be: everything
But most likely, copying everything is not gonna make it run, here is why: Rails applications live in separate processes that have to be specifically maintained. On your dev machine, you do this with bundle exec rails server. This is a key difference to how the apache php module works for php apps: There the php interpreter is embedded within the apache process and therefore shares its life cycle automatically.
If you have control over the server you are deploying to, I recommend to start with the Phusion passenger apache module. It takes care of starting your rails processes as needed. In case you are using ubuntu 14:04, I can't recommend to just apt-get install libapche2-mod-passenger because I had many problems with it.
If the server is maintained by somebody else, I'd ask this someone for a solution.
I hope this helps.
I have my features.xml file in src/main/resources/features folder , when I build my project through Jenkins after building my bundle goes to the nexus repository , my requirement is that after my bundle goes to nexus then features.xml should automatically be deployed on servicemix as part of build only. I should not open the servicemix console to install the feature. Please help
You may think about using a KAR (KAraf aRchive).
More information can be found here: http://karaf.apache.org/manual/latest-3.0.x/users-guide/kar.html
You can build а KAR (through Jenkins), containing your feature, then you can use a hot deployment.
Apache Karaf also provides a KAR deployer. It means that you can drop
a KAR file directly in the deploy folder.
Apache Karaf will automatically install KAR files from the deploy
folder. You can change the behaviours of the KAR deployer in the
etc/org.apache.karaf.kar.cfg:
I have also been working on this and my solution was to turn to automated scripting to accomplish this. I wrote a ssh and FTP based program which would stop an smx, delete the ${karaf.home}/data/cache/ directory, replace the new feature file with the one retrieved from the ftp operation, then restart the karaf container.
If you are open to looking into other possibilities:
You can look into Fuse Fabric which can link many smx Containers together and implement version increases and rollbacks. Currently I believe this would also need scripting to accomplish it automatically.
The third option is relatively new and comes in the form of Building docker images and deploying them via OpenShiftV3 which was just unveiled at the Redhat Summit 2015. Its worth noting its fairly new, but it does pack a very impressive feature set.
I'm planning to create a website on dreamhost using Ruby on Rails.
While reading through the wiki on dreamhost, I realized that I have to transfer my local files to the server using svn & capistrano. And Passenger is used by dreamhost to deploy my application.
Can anyone explain the workflow invovled in this?
More details:
As per the details on the dreamhost wiki page on svn, I created a subdomain for the svn repository at http://svn.mywebsite.com/project . I can commit my local changes to this location. But I'm not sure how the files at this directory are moved over to the main website .. i.e. http://www.mywebsite.com Is it done by Capistrano or Passenger?
Passenger is the module loaded by Apache to run and display your Rack based applications which include Rails. Capistrano is used to remotely run commands to checkout and deploy your application from svn. SVN is obviously used to store and version your application. The workflow is as follows:
Write code
Check-in to svn
Deploy with Capistrano
Capistrano checks code out of svn
into a folder which Passenger is
configured to watch.
Passenger notices the changes and
reloads your application.
Capistrano is the tool that does the deployment. It can checkout the files from svn either directly to where the deployment happens (if it has ssh access) or locally and then use ftp/sftp/scp to copy to the deployment area. Passenger is the Apache module that let Apache understand how to serve up your application once it's deployed.
In my server, what option i got is a basic unlimited server can host unlimited rails project
possible to manage gem because it is using cpanel latest version with a ssh
now my confuse is ,
how can i use the no ssh feature in the cpanel and ease my deployment ?
i don't know is that possible to use the capistrano and git with it
any guidance for this ? to make it possible to update with git push feature
i never deploy anything before ,
i tried to use heroku but i don't know why many user can make their file fit the 5mb space...
my project is now 30% at progress but the space used was 14mb...
so, i bought a cheap standard web server with cpanel . any one could help me in this case ?
usually how you guy deploy and where you deploy ?
recently one guy gave me a link for the github deployment, is that possible to make github use in the cpanel server ?
i mean like host and push the file into github and then link to the personal server ?
anyway, thx for person who reply me recently ^.^
i just develop for hobby...any cheap rails server suggest ?
Thx a lot for reply~
You could also try heroku (www.heroku.com) as a hosting platform. It has a simple deployment workflow that uses git.
Unelss you've done it already, you'll need to install git on your local machine.
Here's a bit about capistrano too.
Capistrano is basically a series of scripts (that you run from your local machine) that get your code and put it on your web server(s). You can configure capistrano to either check out your code from git on the production server, or to copy your code from your local machine.