Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Démarches Simplifiées
Vagrant DEV for Démarches-Simplifiées
Commits
f5fed995
Commit
f5fed995
authored
Jul 28, 2020
by
Fabrice Gangler
🎨
Browse files
Mettre à jour README.md
Supprimé Configuration_last_manual_steps.md
parent
8420b4f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Configuration_last_manual_steps.md
deleted
100644 → 0
View file @
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)
README.md
View file @
f5fed995
...
...
@@ -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
S
implifi
ées
see:
[
Documentation - DevOps/dev_vagrant
](
https://gitlab.adullact.net/demarches-simplifiees/de
marches
-s
implifi
ees-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
```
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment