Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob_nth
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ngô Trung Hưng
venjob_nth
Commits
3de67e5d
Commit
3de67e5d
authored
Mar 23, 2021
by
Ngô Trung Hưng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deploy
parent
c9056447
Pipeline
#1173
failed with stages
in 0 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
.gitignore
+1
-0
config/database.yml
+3
-4
config/routes.rb
+1
-1
No files found.
.gitignore
View file @
3de67e5d
...
...
@@ -30,5 +30,6 @@
.vscode/settings.json
config/settings.local.yml
config/secrets.yml
config/settings/*.local.yml
config/environments/*.local.yml
config/database.yml
View file @
3de67e5d
...
...
@@ -15,7 +15,7 @@ default: &default
pool
:
<%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
username
:
root
password
:
1
socket
:
/var/run/mysqld/mysqld.sock
#
socket: /var/run/mysqld/mysqld.sock
development
:
<<
:
*default
...
...
@@ -50,6 +50,5 @@ test:
production
:
<<
:
*default
database
:
venjob_production
username
:
venjob
password
:
<%= ENV['VENJOB_DATABASE_PASSWORD'] %>
url
:
<%= ENV['JAWSDB_URL'] %>
username
:
Rails.application.secrets.database_username
password
:
Rails.application.secrets.database_password
config/routes.rb
View file @
3de67e5d
...
...
@@ -3,7 +3,7 @@
Rails
.
application
.
routes
.
draw
do
get
'setting'
,
to:
'users#set_lang'
,
as: :set_lang
scope
'(:locale)'
,
locale:
/en|vi/
do
devise_for
:users
,
controllers:
{
registrations:
'registrations'
}
#
devise_for :users, controllers: { registrations: 'registrations' }
devise_for
:admins
,
path:
'admin'
,
path_names:
{
sign_in:
'login'
,
sign_out:
'logout'
}
root
'home#index'
...
...
Write
Preview
Markdown
is supported
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