Automatic instance setup based on config variables (fixes #404) #26

Manually merged
dessalines merged 1 commits from nutomic/lemmy:auto-setup into master 2020-03-31 20:55:27 +00:00
Owner

I decided to use this approach because it just seems easier.

I decided to use this approach because it just seems easier.
dessalines requested changes 2020-03-28 22:11:09 +00:00
dessalines left a comment
Owner

Looks good besides that one thing.

Looks good besides that one thing.
@ -2,0 +7,4 @@
admin_password: "lemmy"
# name of the site (can be changed later)
site_name: "Lemmy Test"
}
Owner

We should comment out this section too. I want the standard docker install to let admins pick their own usernames and site name through the web interface.

We should comment out this section too. I want the standard docker install to let admins pick their own usernames and site name through the web interface.
@ -284,1 +309,4 @@
Some(SiteView::read(&conn)?)
} else {
None
};
Owner

Nice, looks great.

Nice, looks great.
Author
Owner

Updated.

Updated.
dessalines requested changes 2020-03-29 17:18:53 +00:00
@ -45,0 +50,4 @@
# # name of the site (can be changed later)
# site_name: "Lemmy Test"
# }
# # optional: email sending configuration
Owner

There's still a setup section at the top of the file, its in here twice now.

There's still a setup section at the top of the file, its in here twice now.
Author
Owner

It looks fine in the diff. Maybe its cause you pulled this before I did a force push? Then your local version might be wrong.

It looks fine in the diff. Maybe its cause you pulled this before I did a force push? Then your local version might be wrong.
Owner

Hrm yeah that was weird. force push generally messes things up, bc it didn't have a correct diff, so it had two sections. I deleted the branch and repulled it and it looks good.

Hrm yeah that was weird. force push generally messes things up, bc it didn't have a correct diff, so it had two sections. I deleted the branch and repulled it and it looks good.
Author
Owner

Will try to avoid it then. But in that case, please squash my changes before merging when they are messy (or just use the squash + merge button on here).

Will try to avoid it then. But in that case, please squash my changes before merging when they are messy (or just use the squash + merge button on here).
@ -2,0 +9,4 @@
# admin_email: ""
# # name of the site (can be changed later)
# site_name: ""
# }
Owner

This one looks okay.

This one looks okay.
dessalines closed this pull request 2020-03-31 20:55:27 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: LemmyNet/lemmy#26
No description provided.