How to create folder and upload file inside openshift? - upload

I'm using rhc client tools for openshift. and i want to upload it PhantomJS. So, I've Executable file and now i want to upload into my openshift server, So please let me know. How can i create folder? and how to upload it? I googled but fully confused with ${OPENSHIFT_DATA_DIR}.
Help would be appreciated!

If you are on Windows you can use winscp to do what you want. Use the equivalent for Mac or Linux. You will want to upload to the DATA directory in your gear. The data directory is already created for you.

Related

How to add a file into the project just before deploying the code into Heroku server

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.

Deploy features.xml in servicemix during jenkins Build

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.

How can I run a Jekyll powered website from HostGator?

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

xe6 - auto deploy output to AWS S3 using REST

OK, new to rad studio, and enjoying it.
We have a cross=platform product, and would like to configure XE6 to automatically deploy to compiled .exe & Dll files to specified buckets in S3.
We have looked at the cloud exploerer example which came with samples and can load the files manually using REST.
http://docwiki.embarcadero.com/CodeExamples/XE6/en/DataSnap.Cloud_Explorer_Sample
and have checked out how to specify an output folder
Where can I specify an output folder for DLLs?
As discussed we are not that familiar with XE6, and while they have something called a 'platform deployment manager' we don't want to setup up and EC2 instance to facilitate the process.
Does anyone have any sample scripts or advice on how to configure the output path to use the REST protocol to put the compiled files up on S3 automatically?

How can I build a Mac package on linux? (BOM file problem)

I'm running a business where we are creating email stationeries for people. We have some Mac users that currently have to download a zip file and manually copy that to their mail stationeries directory.
I want to automate that process and allow Mac users to download directly a package that will copy those files automatically.
I've build a sample package with PackageMaker, created script that will replace Archive.pax.gz with client's stationeries but go an error. I have realized I did not provide a mandatory BOM file. How can I create it on a non-mac platform? Or if I can't, is there any other way to create a Mac installer on a non-mac platform?
It is now possible to create BOM (bill-of-materials) files on linux. Someone created an open-source version of mkbom at:
http://hogliux.github.io/bomutils
The website also has an easy to follow step-by-step tutorial on creating a Mac OS X installer on Linux ( http://hogliux.github.io/bomutils/tutorial.html ).
My company regularly build Mac OS X installers on linux with this method and so far we haven't had any major problems.
Either you can find a package of this utility for your Linux: http://www.unix.com/man-page/All/8/mkbom/ or you can try to write it yourself, given the information available at Apple's website on BOM.
Finally I've created a postflight hook that is doing all the installation process

Resources