Skip to content

Commit b0a3e70

Browse files
committed
Even more doc updates
1 parent 817497f commit b0a3e70

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,21 +269,25 @@ yarn run start
269269

270270
You should now be able to go to <https://intercode.test:5050> and see the app running!
271271

272-
Now let's make you a local administrator. Click the user icon in the upper right of the navigation bar and choose "Sign up" to sign up for an account in your local copy of Intercode.
272+
If you don't, you probably need to import the self-signed CA to your local keychain. In Chrome and Chromium-based browsers, you'll probably get an error that allows you to go ahead and trust the CA, which you should do.
273273

274-
To make yourself a superadmin in your local copy, open a third terminal and run:
274+
In Firefox, the browser will likely hang forever when trying to load the page. You'll have to go into Firefox's security settings and go to Certificates, and import the `dev_ca.crt` file (generated in a previous step) as a trusted CA for websites.
275+
276+
#### Making yourself a local admin
277+
278+
Now let's make you a local administrator. Open a third terminal and run:
275279

276280
```sh
277281
bin/rails console
278282
```
279283

280-
At the Rails console prompt, type:
284+
At the Rails console prompt, use a command like this to create an admin user:
281285

282286
```ruby
283-
User.first.update!(site_admin: true)
287+
User.create!(email: 'your email address here', first_name: 'your first name here', last_name: 'your last name', password: 'your password', site_admin: true)
284288
```
285289

286-
This will set the `site_admin` flag on your account in the database, giving you superadmin powers.
290+
This will create an account for you in your local database with the `site_admin` flag turned on. You should now be able to log into your local copy of Intercode and access all the admin functionality.
287291

288292
## Testing production builds
289293

0 commit comments

Comments
 (0)