Installing Sitecore package from a command line - batch-file

Is it possible to install a Sitecore package (containing content tree changes only) from a command line via batch/power shell instead of going into Sitecore UI?
I am looking for the best way to automate our build deployments.
Thanks.

You can do this with Power Shell. Great source of information on how to use Power Shell with Sitecore can be found on Adam Najmanowicz blog ( http://blog.najmanowicz.com/category/software-development/powershell/ ).
And some information about exporting and importing packages is in his post http://blog.najmanowicz.com/2011/12/19/continuous-deployment-in-sitecore-with-powershell/

There is also an experimental powershell install script avaliable at the Sitecore GitHub that also might be useful if you are doing full build deployments from scratch .. https://github.com/Sitecore/PowerShell-Script-Library
(Please feel free to fork and feedback any improvements !)

Related

DC/OS Mesosphere install/deploy my own application across a cluster

I am trying to deploy my own cluster using DC/OS CLI installation. Mesosphere has a huge support as there are many packages ready to install provided in Mesosphere Universe repo (https://github.com/mesosphere/universe).
However, I would like to make one step further. I am trying to install my own applications to my cluster using the DC/OS CLI installation process. To do this, as far as I understand, I need to either (i) make my application recognizable to the system repo (as the other repo packages that are provided in Universe) or (ii) make a new image that consists all my applications and modify the DC/OS script to make the installation possible.
Unfortunately, my modest knowledge is flawed and I could not find any where a clear answer to this.
Therefore, I would like to ask:
1) Is it possible to do what I am trying to do?
2) If the answer is YES, how exactly should I do? My goal is to install my awesome apps for my own purpose, not to publish them. But to add my apps as repo into Universe, it seems like I have to publish them.
It is possible! :)
Please follow these instructions

When I do a git pull origin master from Pantheon, it doesn't seem to pull the database

I'm new to this workflow using Git, and I feel like I'm missing one piece of information that's just not obvious to me. I setup a sandbox on Pantheon and did a Drupal install thru Pantheon. Works fine on dev. Then I cloned it to my local, but when I open my local up in a browser it wants to install Drupal, like it was never setup on Pantheon. My best guess is that it's not pulling the database, can't find it, and figures it's a fresh install. But how do I connect the dots here? Thanks!!
You are correct, the database does not pull down with git, only code.
You will either need to manually download the database from their UI or use their command line tool named Terminus. If you're comfortable with the command line, Terminus is the most convenient.
Another option would be to use Kalabox. This is a local dev environment tool which was just released. I haven't tried the latest release yet but have read users reporting it integrates with Pantheon nicely.

Check the Database of a typo3-Website

it might be a strange question, but does anybody know how to
check the name of the database which is used for a typo3 website?
Because I need this DB but I can't remember its name and I have got a lot DBs.
Thanks if Somebody knows the answer.
You can log into the install tool, via url (/typo3/install) or Backend Module.
Depending on TYPO3 Version you will find it in different places there.
In latest version you will see the information directly after accessing the install tool.
Log into the install tool, either under typo3/install, or via the menu in the backend when logged in as admin.
Go to "all configuration", and check the settings under $TYPO3_CONF_VARS['DB'] - everything database related is listed there.
TYPO3 7 LTS
Open the Install Tool of your TYPO3 installation with the following link (only a example): http://example.com/typo3/install. Make sure your Install Tool is enabled with the file ENABLE_INSTALL_TOOL on the folder typo3conf.
After login to the Install Tool you can see the database information. The informations are available on "All configuration" too. Here you can find the database area Database [DB]. The name of the used database you can find on [DB][database].
As nobody mentioned it yet:
If you have file access you can directly view the file typo3conf/LocalConfiguration.php (typo3conf/localconf.php for TYPO3 before version 6.x).
All configurations from the install tool are saved there. Just search for database.

How to create Play framework 2.0 debian package?

I would need to create a dpkg out of Play 2.0 Java project. It would run stand-alone with MongoDB (or some RDBS). It should be able to shutdown older version and ensure new version starts up cleanly.
Any advice how to create such? Any Play 2.0 related issues to take into account?
Edit: Looks like I will be using fpm
All these package manager installs basically run scritps. So first I would write bash scripts for uninstall, upgrade and install. You have to consider what parts can be replaced in the reinstall and how apply migrations on the database, file copy, and start stop of services. This is the hard part compared to creating a bundle. Only thing to consider for play! is stopping and starting the server when something needs to be replaced.
This might inspire you for startup shutdown scritps: https://gist.github.com/THemming/2173037

Scripting responses for use in the Maven Release Plugin

We are a SVN/Maven/Hudson shop. We are experimenting with using the Maven Release Plugin to help automate our very laborious tagging and releasing process. We are happy with what we are seeing and have researched thus far in regards to this plugin.
Our question is - if we need to have different tags for some of the modules / applications being built, is there a way to script the responses?
We have waded through the interactive dry runs successfully, however we are looking to script these out to further our automation.
Has anyone tried this or know if it is possible?
Does the "Batch Mode" allow this functionality?
Thanks
Joe R
You can -B but it will use default version names (removing -SNAPSHOT at the end).
regarding tags per module you can have a look at the parameter : autoVersionSubmodules 1
/Olivier

Resources