-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c20b00d
commit d6b607d
Showing
80 changed files
with
63 additions
and
20 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Personal website | ||
|
||
Project created under ReactJS technology for the WEB site https://yhojann.cl/ | ||
|
||
|
||
## Execution | ||
|
||
- Develop enviroment : `npm start` | ||
- Compilation : `npm run build` | ||
- Deploy : `npm run deploy` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
const util = require('node:util'); | ||
const exec = util.promisify(require('node:child_process').exec); | ||
|
||
class Deploy { | ||
|
||
constructor(props) { | ||
this.props = props; | ||
this.build() | ||
.then(() => this.upload()) | ||
.then(() => this.fixPerms()) | ||
.then(() => console.log('Success.')) | ||
.catch(e => { console.log('e...'); throw e }); | ||
} | ||
|
||
async build() { | ||
console.log('Building project ...'); | ||
return exec('npm run build'); | ||
} | ||
|
||
async upload() { | ||
console.log('Uploading package to server ...'); | ||
return exec(`rsync -tvrz --progress --delete ./build/ root@${this.props.publicHostname}:${this.props.publicHtml}/`); | ||
} | ||
|
||
async fixPerms() { | ||
console.log('Fixing permissions ...'); | ||
return exec(`ssh root@${this.props.publicHostname} 'chown ${this.props.publicCname}:${this.props.publicCname} -R ${this.props.publicHtml}/'`); | ||
} | ||
} | ||
|
||
new Deploy({ | ||
publicHtml: '/home/yhojann.cl/public_html', | ||
publicHostname: 'a.public.whk.cl', | ||
publicCname: 'yhojann.cl' | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes.
File renamed without changes.