Skip to content

Useful gulp tasks for the orchestration of a Firefly III instance.

License

Notifications You must be signed in to change notification settings

sidyes/firefly-iii-gulp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scripts for Firefly III

This repository contains useful scripts for the orchestration of a firefly iii instance. Feel free to use the gulp tasks for your personal application.

Getting Started

  1. Install via yarn
  2. Create a .envfile in the root of this repository with the following content:
  # SSH Connection Information
  SSH_HOST=<your server IP>
  SSH_USER=<SSH user>V
  SSH_PW=<SSH user password>
  SSH_PORT=<SSH port > # optional (default: 22)

  # DB Connection Information
  DB_USER=<database user>
  DB_PW=<database user password>
  DB_HOST=<host of DB> # optional (default: localhost)
  DB_NAME=<database name>

  # Custom Project Information
  FIREFLY_PATH=<path to your firefly app> # (e.g. /var/wwww/firefly-iii)
  BACKUP_PATH=<path to your local folder for backups> 

Backup

gulp backup

Performs a backup of all relevant files of your firefly iii application as follows:

  • Creates a new folder for your backup in XXX
  • Copies .env of your firefly application
  • Creates a SQL dump and moves it to storage/database
  • Copies /storage/database and storage/uploads to the backup folder

Restore

gulp restore

Restores files and database from backup at remote server:

  • Selects desired backup to restore via prompt
  • Copies .env to your firefly application
  • Copies database folder to /storage/database
  • Copies upload folder to /storage/upload
  • Restores database
  • Deletes database dump remotely

Upgrade

Firefly III

gulp upgrade

Upgrades your firefly iii version to the newest one:

  • Deletes /var/www/<your-app>-old folder
  • Installs newest version in /var/www/<your-app>-updated
  • Renames current /var/www/<your-app> to /var/www/<your-app>-old
  • Renames new /var/www/<your-app>-updated to /var/www/<your-app>
  • Updates folder permissions accordingly
  • Restars apache server

Shoutout to @pedrom34 and his gist

Data-Importer

gulp upgrade-importer

  • Installs newest version in /var/www/updated-data-importer
  • Copies the current .env in the updated version
  • Moves the current data importer to /var/www/old-data-importer
  • Moves the updated data importer to /var/www/data-importer
  • Updates folder permissions accordingly

About

Useful gulp tasks for the orchestration of a Firefly III instance.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published