You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-71
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,6 @@
4
4
5
5
-[**Create your database**](#create-your-database)
6
6
-[Deploy to **Glitch**](#deploy-to-glitch)
7
-
-[Deploy to **Azure**](#deploy-to-azure)
8
7
-[Deploy to **Heroku**](#deploy-to-heroku)
9
8
10
9
## Create your database
@@ -44,75 +43,7 @@ Not tested 100%. Same as with Heroku, will sleep after a while.
44
43
5. Wait for it to setup
45
44
6. Press **Share**-button to get your URL to live site. It should be something for example like: `https://seemly-truthful-scribe.glitch.me/`. And your DB will be at `https://seemly-truthful-scribe.glitch.me/posts`
You can also use _Microsoft Azure_ to deploy a smaller app for free to the Azure platform. The service is not as easy as _Heroku_ and you might go insane because the documentation is really really bad at some times and it's hard to troubleshoot.
52
-
53
-
The **pros** are that on _Azure_ the app **will not be forced to sleep**. It will sleep automatically on inactivity but you can just visit it and it will start up.
54
-
55
-
## Installation
56
-
57
-
1 . Create a Microsoft Account that you can use on Azure: </br>
_This might cause some trouble, you will see. Remember to restart your terminal or maybe your computer if the commands after this does not work_
63
-
64
-
3 . Login to the service via the command line and follow the instructions: </br>
65
-
66
-
```bash
67
-
az login
68
-
```
69
-
70
-
_You will be prompted to visit a website and paste a confirmation code_
71
-
72
-
## Create the project
73
-
74
-
1 . [Create your database](#create-your-database)
75
-
76
-
2 . Create a resource group for your projects, replace the name to whatever you want just be sure to use the same group name in all commands to come. You only have to create the resource group and service plan once, then you can use the same group and plan for all other apps you create if you like.
77
-
78
-
```bash
79
-
az group create -n NameOfResourceGroup -l northeurope
80
-
```
81
-
82
-
3 . Create a service plan:
83
-
84
-
```
85
-
az appservice plan create -n NameOfServicePlan -g NameOfResourceGroup
86
-
```
87
-
88
-
4 . Create the actual app and supply the service plan and resource group
89
-
90
-
```bash
91
-
az webapp create -n NameOfApp -g NameOfResourceGroup --plan NameOfServicePlan
92
-
```
93
-
94
-
5 . Create deployment details. A git-repo is not created automatically so we have to create it with a command:
95
-
96
-
```bash
97
-
az webapp deployment source config-local-git -n NameOfApp -g NameOfResourceGroup
98
-
```
99
-
100
-
6 . From the command in step 5 you should get a **url** in return. Copy this url and add it as a remote to your local git project, for example:
You should be prompted to supply a password, this should be the pass to your account. If not, you can choose a different password at your Dashboard for Azure: **[https://portal.azure.com/](https://portal.azure.com/)**
113
-
114
-
Choose **App Services** in the sidebar to the left and the choose your app in the list that appears then go to **Deployment Credentials** to change your password for deployment:<br>
0 commit comments