howto:webapp
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
howto:webapp [2023/07/29 11:10] – created tcmal | howto:webapp [2025/03/29 07:13] (current) – [Keeping it running] merlin | ||
---|---|---|---|
Line 11: | Line 11: | ||
If your content is going to be served the same to everyone, it's a *static web page*. This includes JS apps that, once loaded, make requests to somewhere else. | If your content is going to be served the same to everyone, it's a *static web page*. This includes JS apps that, once loaded, make requests to somewhere else. | ||
- | Deploying these is super simple - you can build them with Gitlab (if you need to) and then deploy them on our pages instance. [[tutorials:5|This page]] details how. | + | Deploying these is super simple - you can build them with Gitlab (if you need to) and then deploy them on our pages instance. [[howto:homepage|This page]] details how. |
===== Any other applications ===== | ===== Any other applications ===== | ||
Line 21: | Line 21: | ||
Firstly, consider what you need to run alongside your actual app. If you need some kind of database (which is likely), you can use our managed MySQL server. See [[https:// | Firstly, consider what you need to run alongside your actual app. If you need some kind of database (which is likely), you can use our managed MySQL server. See [[https:// | ||
- | Now you need to actually deploy your code. To start with, get it running on the '' | + | Now you need to actually deploy your code. To start with, get it running on the '' |
The rest of the setup largely depends on your language, and framework. For Python, you'll probably want to set up a virtual environment, | The rest of the setup largely depends on your language, and framework. For Python, you'll probably want to set up a virtual environment, | ||
Line 33: | Line 33: | ||
Now you've gotten everything running within the network, it's time to put it on the internet! Before you do this, make an effort to check for any security holes or things that should only be exposed for development. | Now you've gotten everything running within the network, it's time to put it on the internet! Before you do this, make an effort to check for any security holes or things that should only be exposed for development. | ||
- | Now, head to the [[https:// | + | Now, head to the [[https:// |
You can create a new endpoint with your domain and whatever prefix you'd like. The target IP address will be '' | You can create a new endpoint with your domain and whatever prefix you'd like. The target IP address will be '' | ||
+ | |||
+ | If you want to use a custom domain, [[https:// | ||
=== Endpoint options === | === Endpoint options === | ||
+ | |||
+ | There are a couple of advanced options. In most cases you won't need to touch them, but if you have problems you should take a look. | ||
In most cases, you won't need to use HTTPs from the proxy to the target. You can test this by running '' | In most cases, you won't need to use HTTPs from the proxy to the target. You can test this by running '' | ||
Line 72: | Line 76: | ||
- Hit '' | - Hit '' | ||
- | Your app is now running in the background - feel free to log out and it will stay running. If you want to get back to it to see logs or stop it, run '' | + | Your app is now running in the background - feel free to log out and it will stay running. If you want to get back to it to see logs or stop it, run '' |
=== Systemd === | === Systemd === | ||
Line 114: | Line 118: | ||
=== Docker / Orchestrators === | === Docker / Orchestrators === | ||
- | Docker is a tool for packaging up applications with all their dependencies, | + | Docker is a tool for packaging up applications with all their dependencies, |
You can use rootless docker on the sandbox VM, although you'll need an admin to enable lingering for you just like with systemd. Just detach from the docker container once you run it, and it will stay running. You can also use docker compose or any other tools you like for making docker easier. | You can use rootless docker on the sandbox VM, although you'll need an admin to enable lingering for you just like with systemd. Just detach from the docker container once you run it, and it will stay running. You can also use docker compose or any other tools you like for making docker easier. | ||
Line 120: | Line 124: | ||
You can build a docker image for your app right on the sandbox VM, or you can build it somewhere else (including from CI) and push it to the [[https:// | You can build a docker image for your app right on the sandbox VM, or you can build it somewhere else (including from CI) and push it to the [[https:// | ||
- | Lastly, you can use our [[howto: | + | Lastly, you can use our [[howto:specific: |
howto/webapp.1690629026.txt.gz · Last modified: 2023/07/29 11:10 by tcmal