Add SETUP instructions #19

Merged
Rin merged 18 commits from setup-instructions into main 2022-11-28 08:54:36 +00:00

Adding in draft setup instructions for dev environments. Would love some help testing this.

Adding in draft setup instructions for dev environments. Would love some help testing this.
Rin added 1 commit 2022-11-21 06:45:57 +00:00
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
3414cfbd90
Add SETUP instructions
kouhai was assigned by Rin 2022-11-21 06:46:05 +00:00
Rin added 1 commit 2022-11-21 07:12:05 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline was successful Details
e77d1821a7
fix typo
Rin added the
tag/help wanted
label 2022-11-21 07:42:01 +00:00
Rin added 2 commits 2022-11-21 08:33:57 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline was successful Details
5f2752d57b
update gitignore to ignore the pg db we created
Rin added 1 commit 2022-11-21 10:06:55 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline was successful Details
5928dec1f5
Reduce .env file to minimal config
Rin added 1 commit 2022-11-21 10:28:15 +00:00
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
8f59e1a853
Fix numbering <_<
Rin changed title from WIP: Add SETUP instructions to Add SETUP instructions 2022-11-23 07:15:43 +00:00
Rin added 1 commit 2022-11-23 07:21:16 +00:00
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
8d21dc3468
fix no-style links in admin panel
Rin force-pushed setup-instructions from 8d21dc3468 to 8f59e1a853 2022-11-23 07:25:10 +00:00 Compare
Rin force-pushed setup-instructions from 8f59e1a853 to 8a701c5ac3 2022-11-23 07:25:25 +00:00 Compare
kouhai reviewed 2022-11-23 08:04:58 +00:00
.env.dev Outdated
@ -0,0 +1,4 @@
LOCAL_DOMAIN=localhost
DB_HOST=/var/run/postgresql

See below, but can we keep this contained inside the project root?

See below, but can we keep this contained inside the project root?
Poster
Owner

We can set unix_socket_directories = '.' # comma-separated list of directories in postgres.conf...

Yeah that works. Accursed, but it works. It places the socket and lock file in the same dir as the data (so data/postgres15 in our case)

We can set `unix_socket_directories = '.' # comma-separated list of directories` in `postgres.conf`... Yeah that works. Accursed, but it works. It places the socket and lock file in the same dir as the data (so `data/postgres15` in our case)
Rin marked this conversation as resolved
.gitignore Outdated
@ -13,2 +13,4 @@
/db/*.sqlite3-journal
# Ignore the dev postgres db we created.
/data/postgres15/*

Wow, I wish gitea had suggestions.

/data/postgres*/*(?)

Wow, I wish gitea had suggestions. `/data/postgres*/*`(?)
Rin marked this conversation as resolved
SETUP.md Outdated
@ -0,0 +45,4 @@
avoid interfering with system config.
9. Run `bundle install`.
10. Run `yarn install`.
11. Run `export $(grep -v '^#' .env.dev | xargs)` to source in our dev vars. You may want to alias this.

Am 50.01% sure that Rails will automatically source .env.$RAILS_ENV. searches.

Ah. https://github.com/bkeepers/dotenv. .env.development.local should get documented/put into gitignore, then.

Am 50.01% sure that Rails will automatically source `.env.$RAILS_ENV`. *searches*. Ah. https://github.com/bkeepers/dotenv. `.env.development.local` should get documented/put into gitignore, then.
Poster
Owner

Tested, and yeah, it does.

Tested, and yeah, it does.
Rin marked this conversation as resolved
SETUP.md Outdated
@ -0,0 +75,4 @@
2. git restore package.json yarn.lock
3. yarn install
Then re-run `foreman`. No. We have no idea why this worked.

I wonder if a simple rm -rf node_modules will do the trick.

I wonder if a simple `rm -rf node_modules` will do the trick.
Poster
Owner

Maybe? We've been unable to replicate that bug, so maybe it was our own doing. Either way, added it as a suggestion.

Maybe? We've been unable to replicate that bug, so maybe it was our own doing. Either way, added it as a suggestion.
Rin marked this conversation as resolved
Rin added 4 commits 2022-11-23 08:31:30 +00:00
Rin added 1 commit 2022-11-23 08:34:27 +00:00
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
8e4da8677c
Fix headings
Rin added 1 commit 2022-11-23 08:35:19 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline was successful Details
f4b48ca5ee
Command style consistency
kouhai added 1 commit 2022-11-25 00:57:34 +00:00
ci/woodpecker/pr/woodpecker Pipeline failed Details
ci/woodpecker/push/woodpecker Pipeline was successful Details
17ba99b157
rewrite instructions for a self-contained dev env
kouhai added 1 commit 2022-11-25 00:58:29 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline was successful Details
ea44d46ca9
update gitignore
Rin added 1 commit 2022-11-25 03:54:31 +00:00
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
e60d7e3c43
Add dir for redis data
kouhai added 1 commit 2022-11-25 05:01:26 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline was successful Details
bd0da3a499
fix redis conf
kouhai added 1 commit 2022-11-26 03:31:42 +00:00
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
d2d168cd57
fix REDIS_URL unix socket path parsing for relative paths
kouhai added 1 commit 2022-11-26 04:03:26 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline was successful Details
5a92324303
update upstream glitch README/CONTRIBUTING
kouhai added 2 commits 2022-11-28 05:49:49 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline was successful Details
41f55e5d8f
update upstream glitch README/CONTRIBUTING
Rin merged commit 41f55e5d8f into main 2022-11-28 08:54:36 +00:00
Rin deleted branch setup-instructions 2022-11-28 08:54:37 +00:00
Sign in to join this conversation.
There is no content yet.