This repository was archived by the owner on May 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +20
-15
lines changed Expand file tree Collapse file tree 5 files changed +20
-15
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ MEILISEARCH_ENVIRONMENT='development'
18
18
MEILISEARCH_SERVER_PROVIDER=provider_name
19
19
USE_API_KEY=' false'
20
20
MEILISEARCH_MASTER_KEY=' '
21
- MEILI_DUMPS_DIR =' /var/opt/meilisearch/dumps'
21
+ MEILI_DUMP_DIR =' /var/opt/meilisearch/dumps'
22
22
DOMAIN_NAME=' '
23
23
USE_SSL=' false'
24
24
USE_CERTBOT=' false'
@@ -32,7 +32,7 @@ exit_with_message() {
32
32
echo ' export MEILISEARCH_ENVIRONMENT=' $MEILISEARCH_ENVIRONMENT > /var/opt/meilisearch/env
33
33
echo ' export USE_API_KEY=' $USE_API_KEY >> /var/opt/meilisearch/env
34
34
echo ' export MEILISEARCH_MASTER_KEY=' $MEILISEARCH_MASTER_KEY >> /var/opt/meilisearch/env
35
- echo ' export MEILI_DUMPS_DIR =' $MEILI_DUMPS_DIR >> /var/opt/meilisearch/env
35
+ echo ' export MEILI_DUMP_DIR =' $MEILI_DUMP_DIR >> /var/opt/meilisearch/env
36
36
echo ' export DOMAIN_NAME=' $DOMAIN_NAME >> /var/opt/meilisearch/env
37
37
echo ' export USE_SSL=' $USE_SSL >> /var/opt/meilisearch/env
38
38
echo ' export USE_CERTBOT=' $USE_CERTBOT >> /var/opt/meilisearch/env
Original file line number Diff line number Diff line change @@ -38,8 +38,9 @@ After=systemd-user-sessions.service
38
38
39
39
[Service]
40
40
Type=simple
41
- ExecStart=/usr/bin/meilisearch --db-path /var/lib/meilisearch/data.ms --env $MEILISEARCH_ENVIRONMENT --dumps-dir $MEILI_DUMPS_DIR
42
41
Environment="MEILI_SERVER_PROVIDER=$MEILISEARCH_SERVER_PROVIDER "
42
+ Environment="MEILI_DUMP_DIR=$MEILI_DUMP_DIR "
43
+ ExecStart=/usr/bin/meilisearch --db-path /var/lib/meilisearch/data.ms --env $MEILISEARCH_ENVIRONMENT --dump-dir $MEILI_DUMP_DIR
43
44
44
45
[Install]
45
46
WantedBy=default.target
@@ -56,9 +57,10 @@ After=systemd-user-sessions.service
56
57
57
58
[Service]
58
59
Type=simple
59
- ExecStart=/usr/bin/meilisearch --db-path /var/lib/meilisearch/data.ms --env $MEILISEARCH_ENVIRONMENT --dumps-dir $MEILI_DUMPS_DIR
60
60
Environment="MEILI_MASTER_KEY=$MEILISEARCH_MASTER_KEY "
61
61
Environment="MEILI_SERVER_PROVIDER=$MEILISEARCH_SERVER_PROVIDER "
62
+ Environment="MEILI_DUMP_DIR=$MEILI_DUMP_DIR "
63
+ ExecStart=/usr/bin/meilisearch --db-path /var/lib/meilisearch/data.ms --env $MEILISEARCH_ENVIRONMENT --dump-dir $MEILI_DUMP_DIR
62
64
63
65
[Install]
64
66
WantedBy=default.target
Original file line number Diff line number Diff line change 9
9
- name : root
10
10
shell : /bin/bash
11
11
12
- packages :
12
+ packages :
13
13
- git
14
14
- curl
15
15
- ufw
@@ -28,8 +28,9 @@ write_files:
28
28
29
29
[Service]
30
30
Type=simple
31
- ExecStart=/usr/bin/meilisearch --db-path /var/lib/meilisearch/data.ms --env development --dumps-dir MEILI_DUMPS_DIR
32
31
Environment="MEILI_SERVER_PROVIDER=aws"
32
+ Environment="MEILI_DUMP_DIR=/var/opt/meilisearch/dumps"
33
+ ExecStart=/usr/bin/meilisearch --db-path /var/lib/meilisearch/data.ms --env development --dump-dir $MEILI_DUMP_DIR
33
34
Restart=on-failure
34
35
RestartSec=5s
35
36
@@ -64,13 +65,13 @@ write_files:
64
65
meilisearch-setup
65
66
66
67
runcmd :
67
- - wget --directory-prefix=/usr/bin/ -O /usr/bin/meilisearch https://github.com/meilisearch/meilisearch/releases/download/v0.30.5 /meilisearch-linux-amd64
68
+ - wget --directory-prefix=/usr/bin/ -O /usr/bin/meilisearch https://github.com/meilisearch/meilisearch/releases/download/v1.0.0 /meilisearch-linux-amd64
68
69
- chmod 755 /usr/bin/meilisearch
69
70
- systemctl enable meilisearch.service
70
71
- ufw --force enable
71
72
- ufw allow 'Nginx Full'
72
73
- ufw allow 'OpenSSH'
73
- - curl https://raw.githubusercontent.com/meilisearch/cloud-scripts/v0.30.5 /scripts/deploy-meilisearch.sh | bash -s v0.30.5 aws
74
+ - curl https://raw.githubusercontent.com/meilisearch/cloud-scripts/v1.0.0 /scripts/deploy-meilisearch.sh | bash -s v1.0.0 aws
74
75
75
76
power_state :
76
77
mode : reboot
Original file line number Diff line number Diff line change 9
9
- name : root
10
10
shell : /bin/bash
11
11
12
- packages :
12
+ packages :
13
13
- git
14
14
- curl
15
15
- ufw
@@ -28,8 +28,9 @@ write_files:
28
28
29
29
[Service]
30
30
Type=simple
31
- ExecStart=/usr/bin/meilisearch --db-path /var/lib/meilisearch/data.ms --env development --dumps-dir MEILI_DUMPS_DIR
32
31
Environment="MEILI_SERVER_PROVIDER=digitalocean"
32
+ Environment="MEILI_DUMP_DIR=/var/opt/meilisearch/dumps"
33
+ ExecStart=/usr/bin/meilisearch --db-path /var/lib/meilisearch/data.ms --env development --dump-dir $MEILI_DUMP_DIR
33
34
Restart=on-failure
34
35
RestartSec=5s
35
36
@@ -65,13 +66,13 @@ write_files:
65
66
66
67
runcmd :
67
68
- apt-get purge droplet-agent* -y
68
- - wget --directory-prefix=/usr/bin/ -O /usr/bin/meilisearch https://github.com/meilisearch/meilisearch/releases/download/v0.30.5 /meilisearch-linux-amd64
69
+ - wget --directory-prefix=/usr/bin/ -O /usr/bin/meilisearch https://github.com/meilisearch/meilisearch/releases/download/v1.0.0 /meilisearch-linux-amd64
69
70
- chmod 755 /usr/bin/meilisearch
70
71
- systemctl enable meilisearch.service
71
72
- ufw --force enable
72
73
- ufw allow 'Nginx Full'
73
74
- ufw allow 'OpenSSH'
74
- - curl https://raw.githubusercontent.com/meilisearch/cloud-scripts/v0.30.5 /scripts/deploy-meilisearch.sh | bash -s v0.30.5 digitalocean
75
+ - curl https://raw.githubusercontent.com/meilisearch/cloud-scripts/v1.0.0 /scripts/deploy-meilisearch.sh | bash -s v1.0.0 digitalocean
75
76
- curl https://raw.githubusercontent.com/digitalocean/marketplace-partners/master/scripts/90-cleanup.sh | bash
76
77
- curl https://raw.githubusercontent.com/digitalocean/marketplace-partners/master/scripts/99-img-check.sh | bash
77
78
Original file line number Diff line number Diff line change @@ -29,8 +29,9 @@ write_files:
29
29
30
30
[Service]
31
31
Type=simple
32
- ExecStart=/usr/bin/meilisearch --db-path /var/lib/meilisearch/data.ms --env development --dumps-dir MEILI_DUMPS_DIR
33
32
Environment="MEILI_SERVER_PROVIDER=gcp"
33
+ Environment="MEILI_DUMP_DIR=/var/opt/meilisearch/dumps"
34
+ ExecStart=/usr/bin/meilisearch --db-path /var/lib/meilisearch/data.ms --env development --dump-dir $MEILI_DUMP_DIR
34
35
Restart=on-failure
35
36
RestartSec=5s
36
37
@@ -65,13 +66,13 @@ write_files:
65
66
meilisearch-setup
66
67
67
68
runcmd :
68
- - wget --directory-prefix=/usr/bin/ -O /usr/bin/meilisearch https://github.com/meilisearch/meilisearch/releases/download/v0.30.5 /meilisearch-linux-amd64
69
+ - wget --directory-prefix=/usr/bin/ -O /usr/bin/meilisearch https://github.com/meilisearch/meilisearch/releases/download/v1.0.0 /meilisearch-linux-amd64
69
70
- chmod 755 /usr/bin/meilisearch
70
71
- systemctl enable meilisearch.service
71
72
- ufw --force enable
72
73
- ufw allow 'Nginx Full'
73
74
- ufw allow 'OpenSSH'
74
- - curl https://raw.githubusercontent.com/meilisearch/cloud-scripts/v0.30.5 /scripts/deploy-meilisearch.sh | bash -s v0.30.5 gcp
75
+ - curl https://raw.githubusercontent.com/meilisearch/cloud-scripts/v1.0.0 /scripts/deploy-meilisearch.sh | bash -s v1.0.0 gcp
75
76
76
77
power_state :
77
78
mode : reboot
You can’t perform that action at this time.
0 commit comments