/cs3_lab_deploy

A tool to simplify the deployment of Java EE Website in CSULA.

Primary LanguagePythonMIT LicenseMIT

CS3 Lab Deploy

CSULA python License: MIT

About

CS3 Lab Deploy is a python program to simplify the deployment of Java EE Website.

CS3 Lab Deploy is a project by gastbob40.

Requirements

You will need this element for the proper working of the project.

Getting started

  1. First, you will have to clone the project.
git clone https://github.com/gastbob40/cs3_lab_deploy
  1. Create a virtual environment, in order to install dependencies locally. For more information about virtual environments, click here.
python -m venv venv
  1. Activate the virtual environment

Linux/macOS:

# Using bash/zsh
source venv/bin/activate
# Using fish
. venv/bin/activate.fish
# Using csh/tcsh
source venv/bin/activate.csh

Windows:

# cmd.exe
venv\Scripts\activate.bat
# PowerShell
venv\Scripts\Activate.ps1
  1. Finally, install the dependencies
pip install -r requirements.txt
  1. Configure CS3 Lab Deploy. This is necessary to use the program. Check the next section for instructions.

  2. Run python index.py to launch CS3 Lab Deploy. Also make sure that the venv is activated when you launch the program (you should see venv to the left of your command prompt).

Configuration

The config folder contains all the data of the program configuration.

settings.default.yml

This file contain all data about sftp connection. This file looks like this:

hostname: ~           # This is the hostname of the sftp server
username: ~           # This is your username in the server
password: ~           # This is your password in the server
project_folder: ~     # This is the place of the project on YOUR computer
folder_to_deploy: ~   # This is the place to deploy the project on the server
clean_deploy: ~       # If set to true, to script will delete the content of www folder, else it will just add files

You must fill in the file and rename it to settings.yml