-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# SyntaxSorcerer Project | ||
|
||
## Installation | ||
|
||
This project contains scripts for managing the frontend and server components of the SyntaxSorcerer application. The scripts cover: | ||
|
||
1. Installing NPM dependencies. | ||
2. Deploying to Fly.io. | ||
3. A combined script to execute both tasks sequentially. | ||
|
||
|
||
## Scripts | ||
|
||
### 1. `npm_install.sh` | ||
|
||
**Description**: This script installs NPM dependencies for both the `frontend` and `server` components. | ||
|
||
### 2. `fly_deploy.sh` | ||
|
||
**Description**: This script deploys both the `frontend` and `server` components to `Fly.io.` | ||
|
||
### 3. `run_all_tasks.sh` | ||
|
||
**Description**: This script performs both the `NPM installation` and `Fly.io deployment` tasks sequentially. It installs dependencies for both frontend and server, then deploys them. | ||
|
||
### **Usage**: | ||
1. Open your terminal. | ||
2. Navigate to the `scripts` directory: | ||
|
||
```bash | ||
cd SyntaxSorcerer/scripts | ||
``` | ||
3. Make scripts in this directory executable. | ||
```bash | ||
chmod +x *.sh | ||
``` | ||
4. Execute your desired script. | ||
```bash | ||
./npm_install.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
|
||
cd ../frontend | ||
fly deploy | ||
|
||
|
||
cd ../server | ||
fly deploy | ||
|
||
|
||
echo "Deployment complete. Have a good day! :)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
|
||
cd ../frontend | ||
npm install | ||
|
||
|
||
cd ../server | ||
npm install | ||
|
||
|
||
echo "NPM INSTALL COMPLETE. :)" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
|
||
cd ../frontend | ||
npm install | ||
|
||
|
||
cd ../server | ||
npm install | ||
|
||
|
||
cd ../frontend | ||
fly deploy | ||
|
||
|
||
cd ../server | ||
fly deploy | ||
|
||
|
||
echo "All tasks complete. Have a good day! :)" |