Skip to content

Commit

Permalink
Add changes for 33dffa8
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 19, 2024
1 parent fcb82bc commit f166ff2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
15 changes: 9 additions & 6 deletions _sources/misc/add_new_instance_to_specify_cloud.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,15 @@
2. `crontab -e;` and then add the line `0 3 * * 0,2,4,6 docker exec specifycloud_nginx_1 nginx -s reload`
3. `crontab -l` to list cronjobs
5. Add Specify Admin user credentials to the Bitwarden Vault
7. Asset Server
1. SSH into the appropriate Asset Server for the region
2. Add `<dbname>` directory in attachments directory `su specify -c "mkdir attachments/<dbname>`
3. Add `<dbname>` to `/home/specify/new-asset-server/settings.py`
4. Run `systemctl restart web-asset-server.service`
8. Updown
6. Setup attachments for the database
1. SSH into the appropriate Web Asset Server
2. Navigate to the `web-asset-server` directory
2. Use the `manage_collection_dirs.py` utility to add the new database(s) to the server:
```
python3 manage_collection_dirs.py add <database_name>
```
This creates a new attachemnt directory and updates the `settings.py` file to add the collection directory.
7. Updown
1. Add url: `<subdomain>.specifycloud.org/context/system_info.json`
2. Add alias: `<subdomain>`

Expand Down
16 changes: 10 additions & 6 deletions misc/add_new_instance_to_specify_cloud.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,16 @@ <h2>Example for <dbname><a class="headerlink" href="#example-for" title="Link to
</ol>
</li>
<li><p>Add Specify Admin user credentials to the Bitwarden Vault</p></li>
<li><p>Asset Server</p>
<ol class="arabic simple">
<li><p>SSH into the appropriate Asset Server for the region</p></li>
<li><p>Add <code class="docutils literal notranslate"><span class="pre">&lt;dbname&gt;</span></code> directory in attachments directory <code class="docutils literal notranslate"><span class="pre">su</span> <span class="pre">specify</span> <span class="pre">-c</span> <span class="pre">&quot;mkdir</span> <span class="pre">attachments/&lt;dbname&gt;</span></code></p></li>
<li><p>Add <code class="docutils literal notranslate"><span class="pre">&lt;dbname&gt;</span></code> to <code class="docutils literal notranslate"><span class="pre">/home/specify/new-asset-server/settings.py</span></code></p></li>
<li><p>Run <code class="docutils literal notranslate"><span class="pre">systemctl</span> <span class="pre">restart</span> <span class="pre">web-asset-server.service</span></code></p></li>
<li><p>Setup attachments for the database</p>
<ol class="arabic">
<li><p>SSH into the appropriate Web Asset Server</p></li>
<li><p>Navigate to the <code class="docutils literal notranslate"><span class="pre">web-asset-server</span></code> directory</p></li>
<li><p>Use the <code class="docutils literal notranslate"><span class="pre">manage_collection_dirs.py</span></code> utility to add the new database(s) to the server:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">python3</span> <span class="n">manage_collection_dirs</span><span class="o">.</span><span class="n">py</span> <span class="n">add</span> <span class="o">&lt;</span><span class="n">database_name</span><span class="o">&gt;</span>
</pre></div>
</div>
<p>This creates a new attachemnt directory and updates the <code class="docutils literal notranslate"><span class="pre">settings.py</span></code> file to add the collection directory.</p>
</li>
</ol>
</li>
<li><p>Updown</p>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit f166ff2

Please sign in to comment.