deployment,octopus-deploy,nuspec,octopack , Octopack packaging windows service as if it were a web site


Octopack packaging windows service as if it were a web site

Question:

Tag: deployment,octopus-deploy,nuspec,octopack

I have a windows service which contains the necessary components to allow it to render razor templates. This service listens on a message queue and sends emails, using the razor templates to generate rich html.

Everything is working fine, however, when it comes to deploying it with Octopus Deploy, it seems that OctoPack is seeing this service as a web site and packaging it incorrectly.

Before adding the razor template feature, this service used to get packaged correctly and was able to deploy with no worries.

The packaged output now looks like:

enter image description here

When in reality, it needs to just contain the contents of the bin folder. It seems to me as if OctoPack is treating the service as a website now.

I have tried adding a nuspec file, but that doesn't work, I end up with:

enter image description here

Nuspec file looks like:

<!-- cut for brevity -->
<files>
  <file src="bin\**\*.*" target=""/>
</files>

So that doesn't work either.

What can I do to fix this??


Answer:

I managed to hack something together to solve the problem I was having. After looking at the Octopus Deploy docs, I found that I could pass a OctoPackNuGetProperties property to msbuild and replace the config name in the nuspec file.

So the nuspec file now looks like this:

<files>
  <file src="bin\$config$\**\*.*" target="" />
</files>

and I now pass /p:OctoPackNuGetProperties=config=Deploy to msbuild, which means that OctoPack now packages the service bin correctly.

I'm still interested to hear from someone at Octopus as to whether this is an issue with OctoPack or whether it's to do with how I've set things up though.


Related:


Programmatically find the 'main' javascript file for libraries on GitHub


javascript,github,deployment,npm
I'm looking to find a way of finding the "key" javascript file from javascript libraries posted on GitHub in as automated as a way as possible. So for example, this bootstrap extension called Jasny has a ton of files on the GitHub page. To get the key js file you...

Deployment over GPRS to embedded devices


linux,git,deployment,embedded,rsync
I've got quite a head scratcher here. We have multiple Raspberry Pis on the field hundreds of kilometers apart. We need to be able to safe(ish)ly upgrade them remotely, as the price for local access can cost up to few hundred euros. The raspis run rasbian, / is on SD-card...

Staging Environment best practices


deployment,environment,staging
I'm setting up a staging environment for my laravel application because I want to see how my changes would behave live before going into production. Setting up the env. is fine, since I'm using bitbucket and dploy, which makes the workflow very smooth. My questions are about the domain setup....

running node.js sails app on openshift


node.js,deployment,sails.js,openshift
I'm trying to deploy my node.js sails app on openshift. I followed procedure outlined in https://gist.github.com/mdunisch/4a56bdf972c2f708ccc6 but still doesn't work. also try this: Node.js app on openshift no matter what i'm getting "Service Temporarily Unavailable" The server is temporarily unable to service your request due to maintenance downtime or capacity...

How to properly deploy angular application (based on ngBoilerplate and using nginx)?


javascript,angularjs,nginx,deployment,ngboilerplate
I have found, that ngBoilerplate was extremly easy for making first steps in webdevelopment based on angular. Right know I am trying to prepare my deployment pipeline, so I use github, travis-ci and dockerized nginx image. I thought that to properly deploy my simple angular website I just have to:...

How to correctly add ENV[“SECRET_KEY”BASE"] in rails


ruby-on-rails-4,deployment
I am having a difficult time setting up Rails 4.2 in production on a VM running on passenger and nginx, and not using RVM or anything similar. I got Incomplete response received from application and looking in the nginx error log it said something about missing secret_key_base and secret_key although...

Deploy enterprise (in-house) application on windows phone without developer unlocking the phone?


windows-phone-8,deployment,windows-phone-8.1,enterprise
As the title says, I would like to deploy my application on multiple phones, without developer unlocking them. The said application is private, thus it can't be distributed through the store. I've heard of Company app distribution, however it's not clear for me whether it requires a developer unlocked phone...

Get back an already deployed meteor app


deployment,meteor,meteorite
I have this app I deployed a few months back on meteor servers, let's say it's accessible via : myapp.meteor.com Now I want to reverse the procedure and get back the code I deployed. (like doing a pull from myapp.meteor.com to my local machine) Is such thing possible ?...

Issue in deploying restlet based application on tomcat


tomcat,deployment,restlet
I am having issue in deploying restlet application on tomcat webserver. I am able to run the application directly from eclipse but when I deploy on tomcat I get issues like the following. May 10, 2015 10:04:32 AM org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped...

java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map


java,rest,deployment,glassfish,jersey
I am trying to deploy my first rest application using jersey 2.17. I am using Maven, GlassFish 3.1.2.2 for deployment. Application runs in eclipse (tomcat), but gives following error when deploying through glassfish admin console. Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException:...

Laravel 5 on shared hosting getting internal server error


deployment,ftp,laravel-5,shared-hosting
I am trying to get my Laravel 5 project running on my shared hosting through FTP. I have uploaded all my project files from my local XAMP-folder to the server root directory and put the files in the 'public' folder in the public_html folder. When I go to mydomain.com I...

How to actually deploy to a serious host?


amazon-web-services,deployment,meteor,amazon-ec2,elastic-beanstalk
It's so undescribably discouraging and frustrating that deploying is such a pain. There are no step-by-step guides and every information source is outdated. I have NO idea where to begin! I want to deploy Meteor apps to AWS (EC2 or Elastic Beanstalk) but now I've learned that it doesn't support...

How do I create a deploy git branch for my Yeoman project?


git,deployment,gruntjs,yeoman,branching-and-merging
I created a new project using Yeoman. Using Grunt I've created the dist directory. My whole project is on Github, https://github.com/d3a1i0/mykungfuisstrong.com, and I've created a prod branch. My question is how do I get my prod branch to have only the contents of dist instead of having the dist directory...

How to Continuously Develop and Deploy an Access 2010 Database Application


ms-access,deployment,ms-access-2010
I've been developing an Access 2010 Database Application, let's call it Skill.accdb. I'm at the stage where I want to start deploying it so users can start using it and continue developing at the same time. I've been reading MSAccess-Deployment-Best-Practices, Deploy-an-Access-2007-application, and Ways-to-share-an-Access-database which talk about splitting, compiling, installing, etc.,...

How to deploy to autoscaling group with only one active node without downtime


amazon-web-services,deployment,autoscaling
There are two questions about AWS autoscaling + deployment which I cannot clearly answer: I'm currently trying to figure out, whats the best strategy to deploy to an EC2 instance behind an ELB which is the only member of an autoscaling group without downtime. By now the EC2 setup will...

uninitialized constant ActiveMerchant::Billing::CreditCard::Validateable (NameError) - in Spree shop


ruby-on-rails,deployment,capistrano,activemerchant
i'm new in rails. Today i tried deploy my shop(SpreeShop) to new production server, but somthing was wrong. I have foolowing problem with some gem: activemerchant (1.34.1). Bellow is my stack trace. uninitialized constant ActiveMerchant::Billing::CreditCard::Validateable (NameError) [email protected][email protected]rd.rb:51:in `<class:CreditCard>' [email protected][email protected]rd.rb:49:in...

What do I set MONGO_OPLOG_URL to in Meteor Up?


deployment,meteor,compose,meteor-up
I have created a database and a user with oplog access in Compose.io. The URI I get looks like this: mongodb://<user>:<password>@lamppost.11.mongolayer.com:10022,lamppost.10.mongolayer.com:10024/cardmaker?replicaSet=set-<bunchOfDigits> Knowing this, what do I set as MONGO_URL and MONGO_OPLOG_URL in mup.json? There is literally no documentation on this. :(...

Maintaining a large website [closed]


deployment,version-control
When I update a website I just replace the content with a new file. How do larger websites update their content? When thousands of visitors are viewing the site. How do example, how do Facebook or Twitter do it? Thousands of developers working and millions of visitors on the website....

Deployment Project - custom action update


c#,visual-studio-2010,deployment,setup-deployment
Situation: I have a Deployment Project in visual studio 2010 setup to install a console application. This console application has some custom actions written into it for the Deployment project. EDIT: To clarify, these custom actions are using the System.Configuration.Install.Installer class in .NET. I use the Committed, BeforeUninstall, AfterUninstall events...

Set ffmpeg path in supervsiorctl config file


python,deployment,virtualenv,supervisord
I am having a issue where my code works fine when not under supervisor. But when under supervisor for some reason it is not finding the path to the ffmpeg dependency. (env)[email protected]:/home/www/yout# which ffmpeg /usr/bin/ffmpeg Is there any way to set the path to ffmpeg to have it check this?...

Slow wpf startup due to publish policy… maybe


.net,wpf,deployment,installer,publisher-policy
I have deployed my .NET assemblies with x-copy for years, without any issue. From last week, we have a small team that wich has the task of build a setup that includes .NET assemblies and exe and c++ legacy exe and dll (more tha 200 files). After the first installation,...

Ruby on Rails with Github Pages


ruby-on-rails,github,deployment,github-pages,gh-pages
I am attempting to host a project using Github pages. As I understand it, Ruby on Rails cannot be run on GH-Pages, with the exception of using Jekyll. My project is not a blog, and therefor Jekyll seems like overkill. Is there any other way to deploy to GH-Pages? Is...

How can I deploy a web application onto an existing domain Meteor javascript


javascript,heroku,deployment,meteor
I am about to deploy my first client facing application built on Meteor JS. My client has a website - www.samplewebsite.com and I want to add my application's routes to that site so it would be www.samplewebsite.com/admin, www.samplewebsite.com/store, etc. instead of www.newapplication.meteor.com. I plan on using Heroku to host the...

Change the “about this” window on mac app


java,osx,deployment
On Macs, there's a default menu at the top for basic application handling functions: I've made an application using Java for my Grade 10 final project, (and I'm quite convinced that it's better than Microsoft Paint) and I decided to package it. Using Eclipse, I exported it as a Mac...

Mule - Exported project - Error java.io.FileNotFoundException


deployment,path,wsdl,mule
I have exported my mule project which contains a WSDL file in src.main.resources/wsdl-request. The type of export is AnyPoint Studio Project to AnyPoint Deployable Archive. The problem is that when I execute the deployable archive in the server it return this error: Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'file:/C:/Users/usrAdmin/AnypointStudio/workspace/mule-project-test/src/main/resources/wsdl-test/Request.wsdl'....

What underlying difference makes Node Instances appear different?


deployment,uml,modeling,enterprise-architect
I have two similar (if not identical) node instances that are appearing differently in a deployment diagram (and anywhere else that I use them). I may have done some odd things in the past while beating EA into submission. But, now ... by pulling every lever I can imagine, I...

Add Binding To IIS With PowerShell Without Overwriting Existing


powershell,iis,octopus-deploy
We use OctopusDeploy to create the website and we use the create website template that is on the community step sites. I have modified it slightly to ensure that if the website exists it adds the default binding however it is removing all the existing bindings. Is there a way...

Unable to deploy through capistrano after ubuntu upgrade


ruby-on-rails,ubuntu,ruby-on-rails-4,deployment,capistrano
I recently upgraded my development machine to Ubuntu 15.04 (was 14.04LTS) and ran into a problem when trying to deploy changes to my server. The interesting bit is, that I can ssh into my server without any issues (hence, the key file is setup correct), but when I try to...

Spring boot war file deploy on Tomcat


tomcat,deployment,spring-boot,war
I use Spring Boot 1.2.4.RELEASE with gs-rest-service source file. I got: 127.0.0.1 - - [18/Jun/2015:09:59:25 +0300] "GET /gs-rest-service-0.1.0/ HTTP/1.1" 404 1021 There are no other exceptions in Tomcat logs. I have read related questions, but my test doesn't run. Spring Boot War deployed to Tomcat I have read howto-create-a-deployable-war and...

Ruby on Rails - Testing changes to Capistrano's deploy.rb


ruby-on-rails,testing,deployment
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...

Flyway migration on deployment: Illegal call to close() detected


java,deployment,java-ee-6,glassfish-3,flyway
We're building a Java EE 6 .ear application running on GlassFish (3.1.2.2b5) and use Flyway (3.2.1) to manage our database schema. This happens on deployment of the .ear - There's an article on the web called "Easy Database Migrations using Flyway, Java EE 6 and GlassFish" which nicely outlines how...

Python/Flask deployment without pip


python,deployment,flask,web-deployment
I've usually deployed my Flask applications with a fairly simple fabric script that put the source on the target machine, used pip to install any dependencies, then fired up uwsgi with all the necessary settings and off it went. However, I have a new issue that some new security settings...

Octopack for .Net 2.0 and msbuild 2.0


msbuild,octopus-deploy,octopack
I was setting up number of projects to build NuGet packages and push onto NuGet server, so it could be later used by Octopus Deploy. All was fine until I needed to apply the same process to legacy projects. The error was: error MSB4062: The "OctoPack.Tasks.CreateOctoPackPackage" task could not be...

How to fix Symfony2 deployment issues?


php,symfony2,deployment,doctrine2,symfony-2.7
I'm having this issue for a while at differents environments, differents projects and some times I did fixed some others likes now I can't find what is failing so this is my latest try. I want to deploy a app so following rules as docs say the first I did...

Deployment of Python API


django,api,nginx,deployment,uwsgi
I'm trying to understand the simplest way to deploy a Django application in production. Many recommend nginx or Apache along with uwsgi or gunicorn. I think that is more than my situation requires, and I would like know if my thinking is correct. This application is nothing more than an...

How to automate deployment of source & compiled code (excluding git history) to third-party developers?


git,deployment,continuous-integration,bitbucket
I'm going to setup some tools/techiques/environments so that when I need to provide the source code for third-party developers, I do it without git history with some sensitive code already compiled and stripped. So I want to automate this process, so that I always provide the latest version of it...

Finding deployment data to a SQL Database


sql,sql-server,deployment
In an effort to maintain versions of the databases we have in our CMDB, I have to obtain the versions of some databases deployed to our servers by a third party company. Is there a system table, view or procedure that allows me to view information regarding recent deployments (code...

Can I deploy multiple instances of my application on the same windows phone?


visual-studio,visual-studio-2013,deployment,windows-phone
I would like to deploy two or more instances of my application, however VS informs me that there is already an installed instance of this application on my phone. How can I install/deploy multiple instances on the same phone for debugging?...

Cannot enable a .war in JBoss AS 7.1


java,deployment,jboss
I have a problem while enabling the .war project in JBoss AS, here is the log from standalone/log/server.txt 18:57:51,727 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "booking-war.war" 18:58:15,025 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.unit."booking-war.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."booking-war.war".PARSE: Failed to process...

Deploying to Android results in file not found after adding QtQuick Controls


android,qt,deployment,qml,qt5.4
After importing QtQuick.Controls 1.2 and using StackedWidget component, I now get an error when deploying to Android as seen below. The missing file AnimationDrawable.qml is not missing from the Android build directory so I do not understand why it is not packaged with the APK. It deploys fine when I...

Deployment PhpStorm gone


deployment,upload,phpstorm
My Deployment in PhpStorm is gone. I tried to upload a project and noticed that I couldn't. Then I figured it must be mappings that aren't set the right way, but when I went to Tools and wanted to click Deployment, Deployment wasn't even there....

Engineyard Deployment: How to detect in deployhooks that its the first attempt to execute 'rake db:seed'


ruby-on-rails,deployment,hook,engineyard
I am having trouble to detect that this is the first attempt of deployment after a server instance is booted. I need to run the command rake db:seed only the first time to set the default users and other details in database. I have no idea if this is possible....

guidelines for production website


java,spring-mvc,deployment
background: I have been a developer for many years, but never really got involved in administration/deployment of products Now I am developing (in my free time) a social website in Java using Spring MVC and MySQL, at some point I want it to go live, what are the guide lines/...

Capistrano Rails deploy with new migration files


ruby-on-rails,ruby-on-rails-4,deployment,capistrano
I want to deploy from a new branch I have created. On this branch, the db/migrate content has changed, I removed some migration files and regenerated a new one. The problem is, when I cap staging deploy from this branch, it fails when running migrations PG::DuplicateTable: ERROR: relation "partners" already...

Efficient way of organizaing mail sending from Rails app


ruby-on-rails-4,deployment,background-process,mailer
I have an Rails 4 application with ruby 2.1.2 that runs on a VPS with 512 mb of RAM and want to know what are the ways of efficiently managing email notification with background job with the least possible additional background processes ( like Redis and Sidekiq, each of them...

Azure deployment from source without TFS?


asp.net-mvc,azure,deployment
Does anyone knows if the deployment from source feature of Azure is intended to work with .NET projects ? I mean, if I put source code in the local git repository of Azure and then trigger a deploy, is my source code going to be compiled and then deployed or...

Can I use my OctopusDeploy built-in Package Repository in Manage NuGet Packages?


nuget,octopus-deploy
I have a working Octopus Deploy server which has a library of packages I built. I have an assembly which depends on one of the assemblies which I have deployed in Octopus Deploy and which is currently in that repository. I tried adding it as a package source in NuGet...

Trouble with publishing simple .html site through FileZilla


html,deployment,web-deployment
I'm trying to publish a really basic site, using some webspace my college provided free for me. I've got access to a www and a data folder. The www is for the website and the data is well, well for the regular data. I've made a simple .html file with...

strongloop slc deploy env var complications


deployment,loopbackjs,strongloop
I've been deploying a loopback app via a custom init.d/app.conf script, using slc run --detach --cluster "cpu", but want to move to using strong-pm, as recommended. But I've come across some limitations and am looking for any guidance on how to replicate the setup with which I'm currently familiar. Currently...

strongloop slc env-set not possible before deploy?


node.js,deployment,strongloop
Was looking at the docs to set up a few apps deployed to strong-pm but ran into a cart-before-the-horse type issue: It's not possible to set environment variables using slc ctl env-set <service> FOO=bar... before an app is deployed and given a service name. This means that you are forced...