Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
padski committed Sep 16, 2023
2 parents 43e7b84 + 68e108c commit 50cd874
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
30 changes: 24 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,37 @@ We use Vagrant to deploy a consistent development environment. To get
your development environment set up:

* Clone this repo
* Fetch libraries: `git submodule update --init`
* Create config file (the defaults are fine): `cp etc/config.php.example etc/config.php`
* Create production settings file (the defaults are fine): `cp lhs/production_settings.py.example lhs/production_settings.py`
* Fetch libraries:
```
git submodule update --init
```
* Create config file (the defaults are fine):
```
cp etc/config.php.example etc/config.php
```
* Create production settings file (the defaults are fine):
```
cp lhs/production_settings.py.example lhs/production_settings.py
```
* Install [Vagrant](https://www.vagrantup.com/downloads.html) and [Virtualbox](https://www.virtualbox.org/)
* Run `vagrant up` in this directory. This will create and configure a virtual machine.
* To create and configure a virtual machine run in this directory
```
vagrant up
```

You should now be able to connect to http://localhost:8000 to view your
development site. Changes you make on your machine will be reflected
on the VM.

If you need to log into the VM for any reason, you can just run
`vagrant ssh`. To access the postgres database, run `psql
hackspace` from the SSH shell.
```
vagrant ssh
```

To access the postgres database, run from the SSH shell
```
psql hackspace
```

## Making yourself an admin
In the postgres shell:
Expand Down
4 changes: 2 additions & 2 deletions london.hackspace.org.uk/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<?=menulink('/donate.php', 'donate', 'Donate')?>
<?if (isset($user) && $user->isMember()) {?>
<?=menulink('/members/members.php', 'memberslist', 'Members List')?>
<?=menulink('/members/webcams.php', 'webcams', 'Webcams')?>
<!-- <?=menulink('/members/webcams.php', 'webcams', 'Webcams')?> -->
<?=menulink('/storage/list.php', 'storagelist', 'Storage Requests')?>
<?=menulink('/members/minutes.php', 'minutes', 'Minutes')?>
<? } ?>
Expand All @@ -26,7 +26,7 @@
<?=menulink('/members/cards.php', 'cards', 'Access Cards')?>
<?if (isset($user) && $user->isMember()) {?>
<?=menulink('/members/code.php', 'code', 'Car Park Code')?>
<?=menulink('/members/tools.php', 'tools', 'Tools')?>
<!-- <?=menulink('/members/tools.php', 'tools', 'Tools')?> -->
<?=menulink('/members/ldap.php', 'LDAP', 'Edit LDAP Account')?>
<? } ?>
</ul>
Expand Down

0 comments on commit 50cd874

Please sign in to comment.