Powershell

Automated deployment for web applications and databases

Powershell

Postby jochem4207 » Fri Dec 13, 2013 11:02 am

Hello,

I've a powershell script and variables.
I tried to place it in:
- the source folder of the project (include it in project, deploy via visual studio)
- i've added it in:
Code: Select all
C:\\ProgramData\\Red Gate\\DeploymentManager\\Data\\PackageCache\\PackageName.1.0.6

- i've used it capitalized names like PostDeploy.ps1 and also deploy.ps1
- i've set variables on the variable page.
- i've published the project multiple times e.g. 1.0.4, 1.0.5, 1.0.6

And it still doesn't get processed when I deploy.
I've read some documentation but didn't helped me.

Where do I need to add this so it actually gets in the deployment?

Thanks for any help :)

Edit
When using publishing via RgPublish.exe the PS file gets included. Now i've some errors to fix.
jochem4207
 
Posts: 34
Joined: Fri Dec 06, 2013 2:27 pm
Location: Netherlands

Postby Chris Auckland » Mon Dec 16, 2013 1:36 pm

Thanks for your post.

When you added the script to the project, did you set the build action to : Content?

Also, it might be worth checking C:\\ProgramData\\RedGate\\DeploymentManager\\Data\\feed
as the cache folder might be out of date.

I hope this helps.
Chris
Chris Auckland
 
Posts: 760
Joined: Tue Oct 24, 2006 2:12 pm
Location: Red Gate Software Ltd.

Postby jochem4207 » Thu Dec 19, 2013 10:45 am

Hey Chris,

Thanks for the answer. And sorry for the late response. In the meanwhile I fixed it using RgPublish to upload the whole directory instead of using visual studio extension.
jochem4207
 
Posts: 34
Joined: Fri Dec 06, 2013 2:27 pm
Location: Netherlands

Postby Chris Auckland » Thu Dec 19, 2013 11:04 am

Thanks for your reply.

That sounds like a sensible workaround. However, you should still get the file using the extension, so let me know if you need any further help with this.
Chris
Chris Auckland
 
Posts: 760
Joined: Tue Oct 24, 2006 2:12 pm
Location: Red Gate Software Ltd.

Re:

Postby jochem4207 » Thu Dec 19, 2013 3:30 pm

Chris Auckland wrote:Thanks for your reply.

That sounds like a sensible workaround. However, you should still get the file using the extension, so let me know if you need any further help with this.


Hey Chris,

When I use the the visual studio right click upload functionlity it only takes the bin folder and some other configs. It ignores a folder I called redgate with stuff in it and a powershell in the main map.

I think this is probably proper behaviour but for me isn't it a problem because I wont deploy from visual studio. The RGpublish does what I want. But i'm curious why the vs plugin only thanks a few selected files.

Greetings and thanks for the awesome forum support. Defenitly one of the best free supports.
jochem4207
 
Posts: 34
Joined: Fri Dec 06, 2013 2:27 pm
Location: Netherlands

Postby Mike Upton » Thu Dec 19, 2013 5:22 pm

The Visual Studio plugin publishes everything marked as output in the project. This includes items that are copied to the output directory (normally the bin directory in webapps), and anything with a build action of 'Content'. To check/edit the build action for a file, right-click on it Solution Explorer and select 'Properties...' (or press Alt+Enter). You should change the build action for the additional files you want included to 'Content' instead of 'None'.
Mike Upton

Project Manager - SQL Compare|Data Compare|Comparison SDK
Redgate Software Ltd.
Mike Upton
 
Posts: 191
Joined: Wed May 11, 2011 8:04 am
Location: Redgate


Return to Deployment Manager

Who is online

Users browsing this forum: No registered users and 0 guests