From 1a5156784c13f599802e47326cd01bd75f62461e Mon Sep 17 00:00:00 2001
From: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
Date: Wed, 31 Jul 2024 08:26:22 -0300
Subject: [PATCH] fix: deploy buttons images not appearing (#3092)
Added railway, render and GCP deploy images and link
---
docs/docs/Deployment/deployment-gcp.md | 24 +---------------------
docs/docs/Deployment/deployment-railway.md | 11 ++--------
docs/docs/Deployment/deployment-render.md | 21 +++----------------
docs/docs/Deployment/railway-deploy.svg | 1 +
docs/docs/Deployment/render-deploy.svg | 6 ++++++
5 files changed, 13 insertions(+), 50 deletions(-)
create mode 100644 docs/docs/Deployment/railway-deploy.svg
create mode 100644 docs/docs/Deployment/render-deploy.svg
diff --git a/docs/docs/Deployment/deployment-gcp.md b/docs/docs/Deployment/deployment-gcp.md
index 913e03097..70644a429 100644
--- a/docs/docs/Deployment/deployment-gcp.md
+++ b/docs/docs/Deployment/deployment-gcp.md
@@ -4,68 +4,46 @@ sidebar_position: 3
slug: /deployment-gcp
---
-
-
:::info
This page may contain outdated information. It will be updated as soon as possible.
:::
-
-
-
## Deploy on Google Cloud Platform {#4ee01cda736c4f7396936409f23cdb52}
-
---
-
### Run Langflow from a New Google Cloud Project {#ce729796d7404ccdb627bee47d6a4399}
-
This guide will help you set up a Langflow development VM in a Google Cloud Platform project using Google Cloud Shell.
-
:::info
When Cloud Shell opens, be sure to select Trust repo. Some gcloud commands might not run in an ephemeral Cloud Shell environment.
:::
-
-
-
### Standard VM {#245b47b450dd4159a5c56a5124bab84f}
-
-[embed](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/langflow-ai/langflow&working_dir=scripts/gcp&shellonly=true&tutorial=walkthroughtutorial.md)
-
+[](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/langflow-ai/langflow&working_dir=scripts/gcp&shellonly=true&tutorial=walkthroughtutorial.md)
This script sets up a Debian-based VM with the Langflow package, Nginx, and the necessary configurations to run the Langflow Dev environment.
-
---
-
## Spot/Preemptible Instance {#de9b8f7c71284cbb98e8137a3c44553d}
-
When running as a [spot (preemptible) instance](https://cloud.google.com/compute/docs/instances/preemptible), the code and VM will behave the same way as in a regular instance, executing the startup script to configure the environment, install necessary dependencies, and run the Langflow application. However, **due to the nature of spot instances, the VM may be terminated at any time if Google Cloud needs to reclaim the resources**. This makes spot instances suitable for fault-tolerant, stateless, or interruptible workloads that can handle unexpected terminations and restarts.
-
---
-
## Pricing (approximate) {#2289f4ba9f544e6e9d4b915ef5aacd24}
-
> For a more accurate breakdown of costs, please use the GCP Pricing Calculator
-
| Component | Regular Cost (Hourly) | Regular Cost (Monthly) | Spot/Preemptible Cost (Hourly) | Spot/Preemptible Cost (Monthly) | Notes |
| ------------------ | --------------------- | ---------------------- | ------------------------------ | ------------------------------- | -------------------------------------------------------------------------- |
| 100 GB Disk | - | $10/month | - | $10/month | Disk cost remains the same for both regular and Spot/Preemptible VMs |
| VM (n1-standard-4) | $0.15/hr | ~$108/month | ~$0.04/hr | ~$29/month | The VM cost can be significantly reduced using a Spot/Preemptible instance |
| **Total** | **$0.15/hr** | **~$118/month** | **~$0.04/hr** | **~$39/month** | Total costs for running the VM and disk 24/7 for an entire month |
-
diff --git a/docs/docs/Deployment/deployment-railway.md b/docs/docs/Deployment/deployment-railway.md
index 6ab0a02b9..cf148b316 100644
--- a/docs/docs/Deployment/deployment-railway.md
+++ b/docs/docs/Deployment/deployment-railway.md
@@ -4,27 +4,20 @@ sidebar_position: 5
slug: /deployment-railway
---
-
-
## Deploy on Railway {#a9a1ce4d39e74cc29aef4d30c6172d10}
-
---
-
Railway is a cloud infrastructure platform that enables developers to deploy and manage applications effortlessly. It provides an intuitive interface, seamless integrations, and powerful features like auto-deploy from GitHub, managed databases, and automatic scaling.
-
Deploying Langflow to Railway involves a few simple steps:
1. **Click the Button Below**: Start by clicking the deployment button provided below. This will redirect you to the Railway platform.
- [https://railway.app/template/JMXEWp?referralCode=MnPSdg](https://railway.app/template/JMXEWp?referralCode=MnPSdg)
+ [](https://railway.app/template/JMXEWp?referralCode=MnPSdg)
2. **Deploy**: Proceed to deploy your Langflow instance. Click Deploy Now to deploy the instance. Railway will handle the rest, including setting up the infrastructure, deploying the Langflow instance, and starting the application.
- 
-
+ 
By following these steps, your Langflow instance will be successfully deployed on Railway.
-
diff --git a/docs/docs/Deployment/deployment-render.md b/docs/docs/Deployment/deployment-render.md
index 974d76338..bde29267d 100644
--- a/docs/docs/Deployment/deployment-render.md
+++ b/docs/docs/Deployment/deployment-render.md
@@ -4,39 +4,24 @@ sidebar_position: 4
slug: /deployment-render
---
-
-
## Deploy on Render {#20a959b7047e44e490cc129fd21895c0}
-
---
-
[Render.com](http://render.com/) is a unified cloud platform designed to make deploying web applications, APIs, and static sites easy. It provides a streamlined experience with powerful features like automatic SSL, managed databases, and auto-deploy from Git, making it a popular choice for developers looking to simplify their deployment workflows.
-
Deploying Langflow to Render is a straightforward process that can be completed in just a few steps:
-
1. **Click the Button Below**: Start by clicking the deployment button provided below. This will redirect you to the Render platform.
-
- [https://render.com/deploy?repo=https://github.com/langflow-ai/langflow/tree/dev](https://render.com/deploy?repo=https%3A%2F%2Fgithub.com%2Flangflow-ai%2Flangflow%2Ftree%2Fdev)
-
+ [](https://render.com/deploy?repo=https%3A%2F%2Fgithub.com%2Flangflow-ai%2Flangflow%2Ftree%2Fdev)
2. **Select the Default Configuration**: Once on the Render platform, you will be prompted to provide a blueprint name and to select the default configuration for Langflow. This configuration includes all the necessary settings and resources to run Langflow efficiently. You can change the branch of the repo to “main” or “dev” based on your preference. Click “Create New Resources” to proceed.
-
-
- 
-
-
+ 
3. **Deploy**: After selecting the configuration, proceed to deploy your Langflow instance. You can keep the default Starter instance, or change it to another instance based on your specific needs. Click Apply to deploy the instance. Render will handle the rest, including setting up the database, deploying the Langflow instance, and starting the application.
-
- 
-
+ 
By following these steps, your Langflow instance will be successfully deployed on Render. Remember to review the pricing details on the Render platform to understand any costs involved.
-
diff --git a/docs/docs/Deployment/railway-deploy.svg b/docs/docs/Deployment/railway-deploy.svg
new file mode 100644
index 000000000..73df2c13e
--- /dev/null
+++ b/docs/docs/Deployment/railway-deploy.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/docs/docs/Deployment/render-deploy.svg b/docs/docs/Deployment/render-deploy.svg
new file mode 100644
index 000000000..7e137639f
--- /dev/null
+++ b/docs/docs/Deployment/render-deploy.svg
@@ -0,0 +1,6 @@
+