@redoute/deploy
v0.0.3
Published
Publish a directy to a webserver
Downloads
1
Keywords
Readme
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>