Skip to content
Snippets Groups Projects
Select Git revision
  • 0e5f0d2072de7c48d6c747aa595460eff84b4a77
  • devel default protected
  • eduardo217
  • jhenifer207
  • jhenifer128
  • jhenifer126
  • jhenifer125
  • guilherme190
  • lineu180
  • lineu181
  • bruna141
  • bruna216
  • altamiro187
  • maria134
  • maria133
  • maria132
  • vinicius177
  • vinicius176
  • vinicius173
  • vinicius210
  • ludmila155
21 results

NetoTb2.2.Rd

Blame
  • blendb.service.example 890 B
    [Unit]
    Description=BlenDB
    After=network.target
    
    [Service]
    # Here you must set the ABSOLUTE path to the DIRECTORY where node is (and npm)
    # If you are using nvm should be some similar to:
    # /home/$user/.nvm/versions/node/$version/bin
    Environment=NODE_PATH=/usr/bin/
    # Here you must set the port where you would like that this service runs
    Environment=BLENDB_PORT=3001
    # Here you must set the user that should run the service
    # We DO NOT recomend run as root but should work properly as root too
    # We recomend create a separeted user named blendb, but any user should work
    User=blendb
    # Here you must set the path to the BLENDB project DIRECTORY
    # We recomend use the ABSOLUTE path
    # Runing pwd on the git repository should give the right path
    WorkingDirectory=/opt/blendb/
    ExecStart=/bin/bash -c "PATH=$PATH:${NODE_PATH}; PORT=${BLENDB_PORT} npm start"
    
    [Install]
    WantedBy=multi-user.target