Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
ngx-deploy-ftp
Advanced tools
Deploy Angular apps to an FTP remote using the Angular CLI
Prefer alternative transfer protocols like HTTPS or SFTP (SSH). Use this library when you have no choice and need to use FTP. Try to use FTPS (FTP over TLS) whenever possible, FTP alone does not provide any security.
This package has the following prerequisites:
ng update
)Add ngx-deploy-ftp
to your workspace (this command either requires a project passed using the --project <PROJECT_NAME>
or a defaultProject
present in your angular.json
)
ng add ngx-deploy-ftp
Deploy your app
ng deploy <OPTIONS>
undefined
(string)ng deploy
– The tag <base href="/">
remains unchanged in your index.html
ng deploy --base-href=/sub-directory/
– The tag <base href="/sub-directory/">
is added to your index.html
Specifies the base URL for the application being built. Same as ng build --base-href=/XXX/
production
(string)ng deploy
– Angular project is build in production modeng deploy --configuration=test
– Angular project is using the configuration test
(this configuration must exist in the angular.json
file)A named build target, as specified in the configurations
section of angular.json
.
Each named target is accompanied by a configuration of option defaults for that target.
Same as ng build --configuration=XXX
.
This command has no effect if the option --no-build
option is active.
false
(boolean)ng deploy
– Angular project is build in production mode before the deploymentng deploy --no-build
– Angular project is NOT buildSkip build process during deployment.
This can be used when you are sure that you haven't changed anything and want to deploy with the latest artifact.
This command causes the --configuration
setting to have no effect.
ng deploy --host myftpserver.com
Specifies the target FTP host to use for deployment.
21
(number)ng deploy --port 1234
Specifies the FTPs port to use for deployment.
true
(boolean)ng deploy --tls false
- turns off TLS for FTPIndicates to connect to the FTP server using TLS or not. (Some client may require to turn TLS off)
ng deploy --username bob
Specifies the username to login on the FTP host.
ng deploy --password passw0rd
Specifies the password to login on the FTP host.
ng deploy --remote-dir 'sub-dir-a/sub-dir-aa'
- Deploys the app to remotes sub-dir-a/sub-dir-aa
Specifies the remotes directory path to deploy the app to.
false
(boolean)ng deploy --clean-remote
- Cleans the remotes working directory before deployingIndicates if the remotes working directory should be cleaned before deployment.
false
(boolean)ng deploy --verbose
Will increase the FTP clients log output. (using --dry-run
will set this to true by default)
false
(boolean)ng deploy --dry-run
For testing: Run through without making any changes. Will connect to the FTP, change the working directory (if passed) and disconnect.
Props to following repositorys for inspiration and deeper understanding:
FAQs
Deploy Angular apps to an FTP remote using the Angular CLI
The npm package ngx-deploy-ftp receives a total of 3 weekly downloads. As such, ngx-deploy-ftp popularity was classified as not popular.
We found that ngx-deploy-ftp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.