Commit f5fed995 authored by Fabrice Gangler's avatar Fabrice Gangler 🎨
Browse files

Mettre à jour README.md

Supprimé Configuration_last_manual_steps.md
parent 8420b4f6
# Last manual steps for installation of Démarches simplifiées
## 1. Get into the box
Once the vagrant box is build:
```shell script
vagrant ssh
```
## 2. Run install commands
```shell script
cd /home/vagrant/demarches-simplifiees.fr
yarn install
bundle install
bin/setup
```
## 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>
/home/vagrant/demarches-simplifiees.fr/bin/delayed_job run &
```
In case of error of previous commands, run:
```shell script
echo 'export PATH=$PATH:/home/ds/rbenv/shims:/home/ds/rbenv/bin' >> /home/ds/.bashrc
```
And relaunch terminal so that changes be taken into account, then re-type last two commands.
## 4. Use Démarches-Simplifiées
### 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
### As a superadmin
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)
......@@ -10,43 +10,8 @@ Vagrant box for Démarches Simplifiées (DS)
* a Ruby version management tool like RVM or [RBenv](https://github.com/rbenv/rbenv)
* r10k (`gem install r10k`)
## Usage
## Documentation
### 1. Grab source code of Démarches Simplifiées
see: [Documentation - DevOps/dev_vagrant](https://gitlab.adullact.net/demarches-simplifiees/demarches-simplifiees-documentation/-/tree/main/DevOps%2Fdev_vagrant)
```shell script
mkdir my-project # "my-project" is the parent directory holding DS source code
cd my-project
git clone git@github.com:betagouv/demarches-simplifiees.fr.git
```
Note: you may clone your own fork of the source code (if you want to contribute for instance)
### 2. Grab source code of vagrant-demarches-simplifiees
```shell script
git clone git@gitlab.adullact.net:demarches-simplifiees/vagrant-demarches-simplifiees.git
```
### 3. Prepare the vagrant box
```shell script
cd vagrant-demarches-simplifiees
./BUILD.sh
```
### 4. Run the vagrant box
```shell script
vagrant up
```
### 5. Finish manual configuration
Complete the instructions from [Configuration_last_manual_steps](Configuration_last_manual_steps.md).
### How to rebuild the vagrant box
```shell script
vagrant destroy -f && vagrant up
```
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment