Skip to content

Commit

Permalink
more tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
gbudjeakp committed Jun 6, 2024
1 parent cbfacd2 commit 98bbe97
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
5 changes: 3 additions & 2 deletions deploy-server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const FtpDeploy = require('ftp-deploy');
const FtpDeploy = require("ftp-deploy");
const path = require('path');

const ftpDeploy = new FtpDeploy();
Expand All @@ -9,11 +9,12 @@ const config = {
host: process.env.FTP_HOST,
port: 21,
localRoot: path.join(__dirname),
remoteRoot: '/public_html/building-u-feedback-server',
remoteRoot: '/public_html/building-u-feedback-api',
include: ['*', '**/*'],
exclude: ['.git', '.github', 'views/**', 'node_modules/**', 'deploy-backend.js', '.env'],
deleteRemote: false,
forcePasv: true,
sftp: false,
};

ftpDeploy.deploy(config)
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "my-program",
"version": "1.0.0",
"description": "",
"name": "building-u-feedback-api",
"version": "0.1.0-alpha",
"description": "Contains packages for the server",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon index.js",
"debug": "nodemon --inspect index.js"
"debug": "nodemon --inspect index.js",
"deploy": "node deploy"
},
"author": "",
"license": "ISC",
Expand Down

0 comments on commit 98bbe97

Please sign in to comment.