0.0.3 • Published 4 years ago

@redoute/deploy v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

name: Deploy menu: Dev

route: /Deploy

deploy

This command send files to a remote server. An Appache

Usage

yarn install @redoute/deploy

You can now add the command to the scripts of your package.json

Example:

redoute-deploy \
  --path /Users/leogourven/Sites/never-lost-again/build \
  --remotePath /var/www/experiments --host 54.39.191.140 \
  --username deployer \
  --privateKey /Users/leogourven/.ssh/deployer-nla 

Where the 3 parameters are :

--path: Local of the directory to upload
--remotePath:Remote directory to put the files
--host: Host the server
--username: The Username to use to connect to the server
--privateKey: path of the PrivateKey
--baseUrl: base url of the (example: nla.dataveyes.com, will deploy on experimentName.datavetes.com) (optional)
--name: Bame of the deploy (default: branch name)

Server configuration

You need to activate the Apache mod_vhost_alias module and configure the server this way.

<VirtualHost *:80>
  ServerName nla.dataveyes.com
  ServerAlias *.nla.dataveyes.com
  VirtualDocumentRoot /var/www/experiments/%1
</VirtualHost>