Commit 772cfccd authored by Fabrice Gangler's avatar Fabrice Gangler 🎨
Browse files

DOC: improve vagrant message

parent c51c784e
......@@ -32,10 +32,10 @@ Vagrant.configure("2") do |config|
###############################################################################################
###############################################################################################
config.vm.post_up_message = <<-MESSAGE
--------------------------------------------------------------
------------------------------------------------------------------
/!\\ Created for testing purpose only,
no security has been made for production
--------------------------------------------------------------
------------------------------------------------------------------
# LOG - To see application log
vagrant ssh -c 'cd src; tail -f log/development.log'
......@@ -46,7 +46,7 @@ Vagrant.configure("2") do |config|
# CONFIG - To see .env file
vagrant ssh -c 'cd src; cat .env'
--------------------------------------------------------------
------------------------------------------------------------------
# TEST - Before running ruby tests
vagrant ssh -c 'sudo -u postgres psql -c "ALTER USER tps_test WITH SUPERUSER;"'
......@@ -54,7 +54,7 @@ Vagrant.configure("2") do |config|
# TEST - Run all ruby tests (spec files)
vagrant ssh -c 'cd src; bin/rspec'
--------------------------------------------------------------
------------------------------------------------------------------
# LINT - Run all Linters (RuboCop, HAML-Lint, SCSS-Lint, ESLint, HAML-Lint)
vagrant ssh -c 'cd src; bin/rake lint'
......@@ -62,7 +62,7 @@ Vagrant.configure("2") do |config|
# DATABASE - Launch PostgreSQL interactive terminal
vagrant ssh -c 'psql'
--------------------------------------------------------------
------------------------------------------------------------------
# UPDATE - Update dependencies and database (useful if you have updated the DS repository)
vagrant ssh -c 'cd src; bin/update'
......@@ -73,16 +73,22 @@ Vagrant.configure("2") do |config|
# PUMA - Start server to be able to restart it quickly (use Ctrl-C to stop it)
vagrant ssh -c 'cd src; RAILS_QUEUE_ADAPTER=delayed_job; bin/rails server --binding=0.0.0.0'
--------------------------------------------------------------
------------------------------------------------------------------
Use 'vagrant port' command line to see port mapping.
Default : 3000 (guest) --> 3000 (host) Puma server port
--------------------------------------------------------------
URL webmail ... http://localhost:3000/letter_opener (default)
URL webapp .... http://localhost:3000 (default) ---> fisrt run: see (1)
--------------------------------------------------------------
User .......... test@exemple.fr
Password ...... this is a very complicated password !
--------------------------------------------------------------
------------------------------------------------------------------
Super-Admin dashboard .... http://localhost:3000/manager/
To enable features .... http://localhost:3000/manager/features/
------------------------------------------------------------------
Webmail ........ http://localhost:3000/letter_opener
Webapp ........ http://localhost:3000 -----> fisrt run: see (1)
------------------------------------------------------------------
Login .......... test@exemple.fr
Password ....... this is a very complicated password !
Above user has following roles:
"user", "instructor", "administrator" and "super-admin"
------------------------------------------------------------------
MESSAGE
###############################################################################################
###############################################################################################
......
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