-
Notifications
You must be signed in to change notification settings - Fork 6
/
project.ps1
51 lines (34 loc) · 1.5 KB
/
project.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Deployment script for AppRolla framework
#
# Visit this site to learn about its features and see more examples:
# https://github.com/AppVeyor/AppRolla
# Staging environment
New-Environment Staging
# Add-EnvironmentServer Staging "staging-server"
New-Environment Production
# Add-EnvironmentServer Production "web.myserver.com" -DeploymentGroup web
# Add-EnvironmentServer Production "app.myserver.com" -DeploymentGroup app
# Azure environments
# New-AzureEnvironment Azure-Staging -CloudService <cloud-service-name> -Slot <Staging|Production>
<#
# What else could be done in this script?
# Customize web site details for web application deployment:
Set-WebsiteRole $projectName <web-app-artifact-name> `
-BasePath <website-root-path> # for example, c:\websites\mywebsite
-WebsiteName "My Website" `
-WebsiteProtocol <http|https> `
-WebsiteIP <ip> `
-WebsitePort <port> `
-WebsiteHost <your-domain> `
# Customize Windows service details:
Set-ServiceRole $projectName <service-artifact-name> `
-BasePath <service-root-path> # e.g. c:\program files\myapp\myservice
-ServiceExecutable <exe-filename> ` # if service bin folder contains more that one .exe
-ServiceName <service-name> `
-ServiceDisplayName <display-name> `
-ServiceDescription <description> `
# Define your custom deployment tasks here, for example:
Set-DeploymentTask mytask -Before deploy {
# do something here on remote server before deployment
}
#>