Configuration_last_manual_steps.md 1.31 KB
Newer Older
Matthieu FAURE's avatar
Matthieu FAURE committed
1
# Last manual steps for installation of Démarches simplifiées 
2

Matthieu FAURE's avatar
Matthieu FAURE committed
3
## 1. Get into the box
4

Matthieu FAURE's avatar
Matthieu FAURE committed
5
6
7
Once the vagrant box is build:

```shell script
8
vagrant ssh
9
10
```

11
## 2. Run install commands
12

Matthieu FAURE's avatar
Matthieu FAURE committed
13
```shell script
14
cd /home/vagrant/demarches-simplifiees.fr
15
yarn install 
16
17
18
19
bundle install
bin/setup
```

Matthieu FAURE's avatar
Matthieu FAURE committed
20
21
22
23
24
## 3. Define IP address and run server

```shell script
ip a    # Lists IP addresses 
/home/vagrant/demarches-simplifiees.fr/bin/rails server --daemon --binding=<IP-of-vagrant-box> 
25
/home/vagrant/demarches-simplifiees.fr/bin/delayed_job run &
26
``` 
27

28
In case of error of previous commands, run:
Matthieu FAURE's avatar
Matthieu FAURE committed
29

30
```shell script
31
echo 'export PATH=$PATH:/home/ds/rbenv/shims:/home/ds/rbenv/bin' >> /home/ds/.bashrc
Matthieu FAURE's avatar
Matthieu FAURE committed
32
```
33

34
And relaunch terminal so that changes be taken into account, then re-type last two commands.
35

36
## 4. Use Démarches-Simplifiées
37

38
39
40
41
42
43
44
45
46
47
### As anonymous user

In your browser, type in: `http://<IP-of-vagrant-box>:3000/` 

### As registered user

1. Go to `http://<IP-of-vagrant-box>:3000/users/sign_in`
2. Log in with login: `test@exemple.fr` and password: `this is a very complicated password !`
3. Check user's emails at `http://<IP-of-vagrant-box>:3000/letter_opener`
4. Validate registration 
48

49
### As a superadmin
50

51
52
1. Go to `http://<IP-of-vagrant-box>:3000/manager/sign_in`
2. Log in with your Github credentials (the ones associated to the "Oauth App" token)