Flex hot deployment for local tomcat server - apache-flex

I am working on flex application and whenever I do any change in action scripts or mxml file I'll have to build it create a war file and deploy it on local tomcat server. Is there any way I could do hot deployment for flex for tomcat?
Thanks
Sach

You can use a custom Builder if you are using Flash Builder.
I'm using a simple batch file that copies the output from bin-debug to Tomcat's webapps folder after every build.
#ECHO OFF
IF NOT EXIST "%1" GOTO END
IF NOT EXIST "%2" GOTO END
DEL /Q "%2\*.*"
COPY /Y "%1\*.*" "%2"
:END
ECHO ON
Configure the Builder like this:
Go to Project -> Properties -> Builders and add a new Builder.

Related

What to copy for a .Net Core console application publish?

I have an incredibly simple .NET core console application that I'd like to publish into a self contained executable. My application uses an the Microsoft.Extensions.Configuration.Json package so I can use an appsettings.json file.
From the command line, in the .csproj folder, I run
dotnet publish --self-contained true -r win-x64
. Inside my Debug folder, I see a netcoreapp2.1 folder and then the win-x64 folder. Inside that folder, I see the following:
publish -> folder
myapp.deps.json
myapp.dll
myapp.exe
myapp.pdb
myapp.runtimeconfig.dev.json
myapp.runtimeconfig.json
appsettings.json
hostfxr.dll
hostpolicy.dll
Am I supposed to copy just the files from this directory or do i have to copy the entire publish folder along with the files to my destination on a Windows Server? Or did I miss a switch to condense these items down further so movement from server to server is even simpler?
Copying just the files from the win-x64 directory was not enough. I needed to copy up the entire publish folder and run the application from that directory, otherwise error messages such as not being able to find a dependency would occur.

dnu publish does not deploy all image and JavaScript files

I use the following command to deploy an ASP.Net core 1.0 MVC application.
dnu publish --runtime active --no-source -o e:\website\zigs
Issue: Some image files and JavaScript files in the VS2015 project
wwwroot 'images' and 'js' folders are not deployed to the
'e:\website\zigs\wwwroot\' images and ..js sub-folders.
The missing files are present in the VS2015 project and all works correctly in the development environment.
I currently use dnvm version 1.0.0-rct1-15540 and dnx-clr-win-x86.1.0.0-rc1-update2
Is there something I need to do to flag the files to be included in the deployment?
(I can get around it by just manually deploying the missing files, but I would need to have the files deployed automatically by the build/deployment server in the future.)
Thank you.
Solved! Make sure the target root folder does not contain any folders/files to do with the deployment before running the dnu publish command!

How to change asp .net web service application build path instead of bin folder?

I am working asp.net web service application.
Normally running time my application dll taken from bin directory.
now i want to add some XML file and folder,so i want to change web service build directory.
I changed directory like this [ex:bin\Common],but this kind of issue came.
Parser Error
Parser Error Message:** Could not create type 'WebService.MainLogic'.
Source Error:
Line 1: <%# WebService Language="C#" CodeBehind="MainLogic.asmx.cs" Class="WebService.MainLogic" %>
Source File: /MainLogic.asmx Line: 1
How can I change the directory?
you can copy bin folder to specific folder after build project.
Right Click on project and go to properties => Build Events
in Post-build event command line write below command :
xcopy /Q /Y "$(TargetPath)" "C:\path\to\somewhere\"
for more information see this link : Copy bin files on to Physical file location on Post Build event in VS2010

Openshift JBoss Logging

Hi I am deploying my spring application to Openshift Jboss AS. The problem is whereever i placed the log4j.properties it is not read by the application. I've tried the following ways to achieve this but can't.
Placed my log4j.properties in WEB-INF/classes.
Placed my log4j.properties in WEB-ING/resources and in web.xml loaded the
context-param for log4jConfigLocation.
Created a
jboss-deployment-structure.xml in META-INF which excludes log4j
logging.
Nothing seems to work . Can some one please help me.
In Jboss there is a default logging available, which can be implemented by modifying standaole.xml.
In Openshift when you ssh into your app using the below command
rhc ssh <app-name>
You will taken into your application where when you give ls command you will see the list of files and folders, you can find jbossas folder change your working directory to that folder
cd jbossas
execute ls command you will see list of folders where you will find standalone folder, change your working directory to this folder
cd standalone
again execute ls command you can see configuration folder, change your working directory to this
cd configuration
now if you execute ls command you can see standalone.xml, we need to edit this file, but editing here may not work because this standalone.xml is a copy of the another file which is in the following folder .openshift/config/standalone.xml . You can find this folder where you clone your git copy, Not in eclipse go to your working directory in window.
We need to edit this file and add our logging properties here. thats how it works

Setup teamcity to pull .asp/html files from TFS

Currently, we have several build configurations for .net projects with Team foundation as the version control. Trying to create a build configuration for a classic asp site under TFS (no files that need to be compiled or .dlls). Not sure how to go about the steps in creating the build configuration (General Settings, Version Control Settings, Build Steps, etc..).
Using TeamCity Professional 7.0.3.
This is an example that I'm using:
General Settings:
The artifact path needs to map to a folder in your vcs. e.g.
%Sourcedirectory%/**
In VCS Settings, you should specify a branch to get e.g. +:master
In Checkout rules, you can limit what to get
+:Mycheckoutpath
Use a command line build step to copy files
(robocopy %SourceDirectory% %DestinationDirectory% /MIR /NP /NDL) ^& IF %%ERRORLEVEL%% LEQ 4 exit /B 0
The variables in "%" are defined as parameters.
Use the ^& IF %%ERRORLEVEL%% LEQ 4 exit /B 0 to make sure to catch returncode 2 to be accepted (this is file overwritten)

Resources