Skip to content

Commit

Permalink
fix: deploy buttons images not appearing (#3092)
Browse files Browse the repository at this point in the history
Added railway, render and GCP deploy images and link
  • Loading branch information
lucaseduoli authored Jul 31, 2024
1 parent 4b65015 commit 1a51567
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 50 deletions.
24 changes: 1 addition & 23 deletions docs/docs/Deployment/deployment-gcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

[![GCP Deploy](https://camo.githubusercontent.com/c1a4a499c1d93d7038fd7af8c4f3fce222050f3bbdf4275dafbfde2491e4b8c4/68747470733a2f2f677374617469632e636f6d2f636c6f75647373682f696d616765732f6f70656e2d62746e2e737667)](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 |

11 changes: 2 additions & 9 deletions docs/docs/Deployment/deployment-railway.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
[![Deploy on Railway](./railway-deploy.svg)](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.

![](./1098199232.png)

![](./1098199232.png)

By following these steps, your Langflow instance will be successfully deployed on Railway.

21 changes: 3 additions & 18 deletions docs/docs/Deployment/deployment-render.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

[![Deploy to Render](./render-deploy.svg)](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.



![](./1861599636.png)


![](./1861599636.png)

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.


![](./1929176153.png)

![](./1929176153.png)

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.

1 change: 1 addition & 0 deletions docs/docs/Deployment/railway-deploy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/docs/Deployment/render-deploy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1a51567

Please sign in to comment.