Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wattsworth
/
lumen-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fa392969
authored
Sep 18, 2018
by
John Doe
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fixed deployment rake task
parent
47fc7d75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
lib/tasks/local.rake
lib/tasks/local.rake
View file @
fa392969
...
...
@@ -14,7 +14,7 @@ namespace :local do
# Create an admin user"
@admin
=
User
.
find_by_email
(
ADMIN_EMAIL
)
if
(
@admin
.
nil?
)
if
@admin
.
nil?
puts
'Creating new admin user'
@admin
=
FactoryBot
.
create
(
:user
,
first_name:
'John'
,
...
...
@@ -23,11 +23,12 @@ namespace :local do
password_confirmation:
ADMIN_PASSWORD
,
email:
ADMIN_EMAIL
)
end
@installation
=
Nilm
.
find_by_url
(
"http://localhost
/nilmdb
"
)
if
(
@installation
.
nil?
)
@installation
=
Nilm
.
find_by_url
(
"http://localhost
:8088
"
)
if
@installation
.
nil?
puts
'Creating new local installation'
#create a local installation
nilm_creator
=
CreateNilm
.
new
@node_adapter
=
Joule
::
Adapter
.
new
(
"http://localhost:8088"
)
nilm_creator
=
CreateNilm
.
new
(
@node_adapter
)
nilm_creator
.
run
(
name:
'local'
,
description:
'local database'
,
...
...
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