jamal 0.1 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9402212f10aa8571ed0e83d0a5dbed70eb5c70598bb85f6508f55ee96105fffe
4
- data.tar.gz: 0f35b747064337969aec3d450a0a851192b42efcc9e546000be8248588ce3ac9
3
+ metadata.gz: 92d9da245898c6f20744182ba5ee84267311786a7a43a29969fc5b9eea848fef
4
+ data.tar.gz: bc1dde5d560ce64ea86899811dc287b3abe34effddf02bebc509f322155548ba
5
5
  SHA512:
6
- metadata.gz: d3f2177e08b89eb443e48a55e41fe73773073ec5c54ba114cf3fb0886fb295ce93d855b3d193b7778c692570c44fd70b6f4f6a71a1faf898f9dbdf7214df654d
7
- data.tar.gz: e413711576342ddbae07b48238507232e2a10f314ccaa79c2f9c87ba12f8c63b6d79ab1e5edf61ae40ef9fe81435a04b93b1694986bbe79a5fd9781f6254a7a2
6
+ metadata.gz: b87d271bc63ae31e24547acdb46ae320d8daa00a8139ae4bb3acd10cfeeb2b2c099d9e2351f04ba2cf4498d817152148e6bf96c6ac12705bfb8ccd1745e40cc7
7
+ data.tar.gz: b885c2572b5e50df0482fe30071cce5843d9654ac91623b0fd1993c75d0cb09f9587fa994e74eaf514cf90b3286c8b8739afeb916fd1b43982ef2533275d3e9f
data/README.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Jamal is a lightweight tool to deploy static websites to remote web servers.
4
4
 
5
+ ## Prerequisites
6
+
7
+ - A remote server running Ubuntu or Debian (we only support these for now).
8
+ - Ports 22 (SSH), 80 (HTTP) and 873 (rsync) open and accessible from the internet.
9
+
5
10
  ## Installation
6
11
 
7
12
  ```bash
@@ -9,6 +14,7 @@ gem install jamal
9
14
  ```
10
15
 
11
16
  ## Usage
17
+
12
18
  1. Run `jamal init` to initialize the configuration file `_jamal.yml`.
13
19
  2. Edit the `_jamal.yml` file to match your server configuration.
14
20
  3. Run the `jamal setup` command to setup the server.
@@ -23,7 +29,7 @@ The `_jamal.yml` file is used to configure the server. It contains the following
23
29
  - `user`: The username of the server.
24
30
  - `password`: The password of the server.
25
31
  - `domains`: The domains of the website.
26
- - `path`: The path to the website on your local machine.
32
+ - `local_path`: The path to the website on your local machine.
27
33
 
28
34
  ## License
29
35
 
data/lib/jamal/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Jamal
4
- VERSION = "0.1"
4
+ VERSION = "0.1.1"
5
5
  end
data/lib/jamal.rb CHANGED
@@ -127,6 +127,18 @@ module Jamal
127
127
  location / {
128
128
  try_files $uri $uri/ =404;
129
129
  }
130
+
131
+ error_page 400 /400.html;
132
+ error_page 401 /401.html;
133
+ error_page 403 /403.html;
134
+ error_page 404 /404.html;
135
+ error_page 405 /405.html;
136
+ error_page 408 /408.html;
137
+ error_page 429 /429.html;
138
+ error_page 500 /500.html;
139
+ error_page 502 /502.html;
140
+ error_page 503 /503.html;
141
+ error_page 504 /504.html;
130
142
  }
131
143
  CONFIG
132
144
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jamal
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mounir Ahmina
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-01-15 00:00:00.000000000 Z
10
+ date: 2025-05-13 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: net-ssh
@@ -94,8 +93,6 @@ dependencies:
94
93
  - - "~>"
95
94
  - !ruby/object:Gem::Version
96
95
  version: 0.3.1
97
- description:
98
- email:
99
96
  executables:
100
97
  - jamal
101
98
  extensions: []
@@ -116,7 +113,6 @@ metadata:
116
113
  allowed_push_host: https://rubygems.org
117
114
  homepage_uri: https://github.com/mojl/jamal
118
115
  source_code_uri: https://github.com/mojl/jamal
119
- post_install_message:
120
116
  rdoc_options: []
121
117
  require_paths:
122
118
  - lib
@@ -131,8 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
127
  - !ruby/object:Gem::Version
132
128
  version: '0'
133
129
  requirements: []
134
- rubygems_version: 3.5.10
135
- signing_key:
130
+ rubygems_version: 3.6.6
136
131
  specification_version: 4
137
132
  summary: Deploy your static website to a remote server
138
133
  test_files: []