-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow toggling menu dropdowns (#251)
* Allow toggling menu dropdowns * Update client/src/components/Nav.svelte
- Loading branch information
1 parent
f39d068
commit 4f55177
Showing
4 changed files
with
102 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<script> | ||
export let className; | ||
</script> | ||
|
||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
class={className} | ||
fill="currentColor" | ||
viewBox="0 0 20 20" | ||
> | ||
<path | ||
fill-rule="evenodd" | ||
d="M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z" | ||
clip-rule="evenodd" | ||
/> | ||
</svg> |
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,7 @@ | ||
# dev | ||
|
||
## Icons | ||
|
||
Les icônes sont tirées de https://heroicons.com/ | ||
|
||
Pour ajouter une nouvelle icône, créer un fichier `.svelte` en utilisant le SVG tiré de HeroIcons. |
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,43 @@ | ||
# prod | ||
|
||
_This document describes Fairness' production deployment of Permacoop. It is meant for Fairness team members._ | ||
|
||
## Deployment | ||
|
||
The current deployment process is manual. It is as follows. | ||
|
||
1. Connect to the remote server via SSH. | ||
1. `cd /var/www/permacoop` | ||
1. Update client and server: | ||
|
||
``` | ||
git pull | ||
``` | ||
|
||
1. Re-build apps: | ||
|
||
``` | ||
cd server && npm run build | ||
cd client && npm run build | ||
``` | ||
|
||
1. Restart `pm2` if need be: if `pm2 status` shows an instance as `error`, restart it using: | ||
|
||
```bash | ||
pm2 reload <INSTANCE_ID> | ||
``` | ||
|
||
## Troubleshooting | ||
|
||
### `502 Bad Gateway` after a deploy | ||
|
||
If the server responds with `502 Bad Gateway` after deploying, it may be that the client and/or API servers failed to boot. | ||
|
||
Restart `pm2`: | ||
|
||
```bash | ||
$ pwd | ||
/var/www/permacoop | ||
$ cd server && pm2 start server.config.js | ||
$ cd client && pm2 start server.config.js | ||
``` |