mirror of
https://github.com/godotengine/godot-website.git
synced 2026-01-04 06:09:55 +03:00
Remove unused and obsolete deployment setup
We no longer require CSS assets to be compiled. Instead, we just run `git pull` on the production server to deploy changes.
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -14,9 +14,7 @@
|
||||
!.gitignore
|
||||
|
||||
# October CMS
|
||||
packed
|
||||
node_modules
|
||||
conf.json
|
||||
|
||||
# Plugins
|
||||
!/plugins
|
||||
|
||||
15
README.md
15
README.md
@@ -64,21 +64,6 @@ You can use the standard `docker exec -it godotengine-org--[php|mariadb] [comman
|
||||
pieces are everything that's stored in the production database
|
||||
(blog entries).
|
||||
|
||||
### Deploying your changes
|
||||
|
||||
Deploying is of course only possible for people who have access to our
|
||||
production server. Most contributors should submit a pull request instead.
|
||||
|
||||
- Install Node.js and npm.
|
||||
- Copy example_conf.json: `cp example_conf.json conf.json`.
|
||||
- Fill out your credentials in `conf.json`.
|
||||
- Run `npm install` then `npm run deploy`.
|
||||
|
||||
This will copy all the compiled assets from the `godotengine/assets/packed`
|
||||
directory to the corresponding directory on production. It'll also make sure
|
||||
that copied assets are still writable by the group on the server. Make sure
|
||||
you've thoroughly tested your changes on your local copy before running this.
|
||||
|
||||
### Syntax highlighting
|
||||
|
||||
If you use Visual Studio Code, you can install the
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
var copy = require("scp2");
|
||||
var SSH = require("simple-ssh");
|
||||
var fs = require("fs");
|
||||
var conf = JSON.parse(fs.readFileSync("conf.json", "utf8")).conf;
|
||||
|
||||
var baseurl =
|
||||
"/home/godotengine/godotengine.org-web/htdocs/themes/godotengine/assets";
|
||||
|
||||
// Copy css
|
||||
copy.scp(
|
||||
"./assets/packed/",
|
||||
`${conf.user}:${conf.password}@${conf.host}:${baseurl}/packed/`,
|
||||
function (err) {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
} else {
|
||||
console.log("Copy success");
|
||||
changePermissions();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
// Handle any tasks that need to be done on remote
|
||||
var ssh = new SSH({
|
||||
host: conf.host,
|
||||
user: conf.user,
|
||||
pass: conf.password,
|
||||
});
|
||||
|
||||
function changePermissions() {
|
||||
ssh
|
||||
.exec(`chmod g+rwx ${baseurl}/packed/*`, {
|
||||
out: function (stdout) {
|
||||
console.log(stdout);
|
||||
},
|
||||
})
|
||||
.start();
|
||||
ssh
|
||||
.exec(`chmod g+rwx ${baseurl}/packed`, {
|
||||
out: function (stdout) {
|
||||
console.log(stdout);
|
||||
},
|
||||
err: function (stderr) {
|
||||
console.log(stderr);
|
||||
},
|
||||
})
|
||||
.start();
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"conf": {
|
||||
"user": "user",
|
||||
"host": "host",
|
||||
"password": "password"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user