Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.92 KB

readme.md

File metadata and controls

53 lines (34 loc) · 1.92 KB

Operative-Bash

Operative Bash is a collection of pre-defined bash scripts tailored to your needs.

OS - Ubuntu 24.04.1 LTS.

You don't need to pay for a server management website. You just need a little bit of curiosity and a bash script.

Video Guide

  • Laravel setup Guide

Setting Up a Laravel Application on EC2 Instance Using Operative Bash | Step-by-Step Tutorial

  • Express setup Guide

Setting Up an Express Application on EC2 Instance Using Operative Bash | Step-by-Step Tutorial

Setting up the Operative user and installing necessary software

SSH to the server and run the following commands:

wget https://raw.githubusercontent.com/setkyar/operative-bash/master/operative.sh
chmod +x ./operative.sh
sudo ./operative.sh "{{ YOUR_LOCAL_SSH_PUBLIC_KEY }}"

By running this, it will create a new user called operative. It will also install all the necessary packages, extensions that you would need to run your Laravel Application.

You can find the password in the terminal output or you can look for it in output.txt file.

Adding Laravel sites

You can easily add a Laravel site by following these steps:

wget https://raw.githubusercontent.com/setkyar/operative-bash/master/site.sh
chmod +x ./site.sh
./site.sh example.com "https://github.com/setkyar/operative-laravel-simple-v2.git" --laravel

Adding NodeJS sites

You can easily add NodeJS sites by following these steps. It will prompt you to enter the port number on which your application is running, and then it will automatically set up the proxy pass for you.

wget https://raw.githubusercontent.com/setkyar/operative-bash/master/site.sh
chmod +x ./site.sh
./site.sh example.com "https://github.com/setkyar/operative-express-simple.git" --node