Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f3ee9f989 | ||
|
|
d441d9178d | ||
|
|
baf438ef28 | ||
|
|
fada2f4c1e | ||
|
|
d46ddc8036 | ||
|
|
b4eb2088de | ||
|
|
26b0788d85 | ||
|
|
d514afe72e |
@@ -0,0 +1,34 @@
|
|||||||
|
# Application
|
||||||
|
|
||||||
|
what is an application
|
||||||
|
|
||||||
|
## Requirement
|
||||||
|
|
||||||
|
## creating an application
|
||||||
|
|
||||||
|
### step 1: Initialize the Application
|
||||||
|
|
||||||
|
Run the following command to create a new application:
|
||||||
|
```bash
|
||||||
|
gy resource app init -p project_id
|
||||||
|
```
|
||||||
|
>If you don’t know your project ID or haven’t created a project yet, see the [[Project]] documentation.
|
||||||
|
#### Flags
|
||||||
|
|
||||||
|
| Flag | what does it do | comment |
|
||||||
|
| ------------- | ------------------------- | ------------------------------------ |
|
||||||
|
| -p project_id | specifies the project id | required |
|
||||||
|
| -n name | Sets the application name | Optional, defaults to directory name |
|
||||||
|
### Step 2: Deploy the Application
|
||||||
|
#### deploying from a Dockerfile
|
||||||
|
|
||||||
|
To deploy using a **Dockerfile**, ensure that:
|
||||||
|
- A `Dockerfile` exists in the project directory.
|
||||||
|
- All necessary files referenced by the `Dockerfile` are present in the same directory.
|
||||||
|
|
||||||
|
Once these requirements are met, deploy the application with:
|
||||||
|
```bash
|
||||||
|
gy resource app launch
|
||||||
|
```
|
||||||
|
#### Deploying from a git repository
|
||||||
|
## Configuring the .ghaymah.json
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
# بسم الله الرحمن الرحيم
|
||||||
|
|
||||||
|
|
||||||
|
> **Note:** Ghaymah CLI is currently supported only on **Linux**.
|
||||||
|
|
||||||
|
To install the cli , run the following command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -sSl https://cli.ghaymah.systems/install.sh | bash
|
||||||
|
```
|
||||||
|
Run
|
||||||
|
|
||||||
|
```bash
|
||||||
|
echo $SHELL
|
||||||
|
```
|
||||||
|
|
||||||
|
supported shells:
|
||||||
|
Supported shells: **bash**, **zsh**, **fish**
|
||||||
|
|
||||||
|
### Step 2: Generate the completion script
|
||||||
|
|
||||||
|
For Bash, run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
gy completion bash >> ~/gy-completion.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 3: Enable command completion
|
||||||
|
|
||||||
|
Run
|
||||||
|
|
||||||
|
```bash
|
||||||
|
echo "source ~/gy-completion.sh" >> ~/.bashrc
|
||||||
|
```
|
||||||
|
|
||||||
|
Then restart your terminal
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
# بسم الله الرحمن الرحيم
|
||||||
|
# Ghaymah CLI
|
||||||
|
## OverView
|
||||||
|
### What is Ghaymah CLI ?
|
||||||
|
### Get started
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
### Install - Linux
|
||||||
|
> **Note:** Ghaymah CLI is currently supported only on **Linux**.
|
||||||
|
|
||||||
|
To install the cli , run the following command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -sSl https://cli.ghaymah.systems/install.sh | bash
|
||||||
|
```
|
||||||
|
### Install - Windows
|
||||||
|
### Install - MacOS
|
||||||
|
|
||||||
|
## Authentication & Security
|
||||||
|
|
||||||
|
## Tutorials
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# Project
|
||||||
|
## Creating a project
|
||||||
|
## Getting a project ID
|
||||||
Reference in New Issue
Block a user