# Managing LCT-Sisters on Heroku
This guide is for getting LCT-Sisters Vue app to run under Heroku.
For the app to work, LCT-Sisters must be able to reach the LCT-Sisters-Server. We cover these details under separate cover.
See Vue Deploy tutorial for other details and explanations: https://medium.com/binarcode/deploying-vue-apps-to-heroku-the-right-way-26b11c1ae5cd (opens new window)
# In development
Fork mcorning/lct-Sisters repo
Do not store keys or sensitive data in your LCT config files (see below)
Make changes to unsensitive config data Make code changes as necessary for your community or organization
# Test First
Before deploying to Heroku, simultate how the client and server apps will work from there:
- Start the LCT-Sisters-server locally
- From the
start-serverunder theserver\package.jsonNPM Explorer node - Or from the Terminal:
- cd /server
node index.js
- From the
- Start the LCT-Sisters Vue app:
- Using the
startscript under thepackage.jsonNPM Explorer node - Or from the terminal
- cd to project root folder (where the package.json sits)
- enter
node ./srv/server.js
- Using the
Note we use
index.jsfor the main module under theserverfolder, and we useserver.jsfor the main node in thesrvfolder to run the Vue app as a nodejs app.
If the app starts and can see the socket.io server, only then will you push changes to master (or main)
# On Heroku
- Sign up for Heroku.com
- Create a new app (lct-Sisters)
# Settings
create config settings for app
- MAP_API_KEY = [the key generated for your google cloud project]
- REDIS_HOST= [url to redis server that includes redisgraph module]
- REDIS_PWD= [your redis password]
# Deploy
- Connect app to your github repo
- Enable Automatic Deploys
- Deploy Branch (if necessary)
- Build can take several minutes...
- You will see the following checks if all goes well:
- Recieve code from Github
- Build master
- Release phase
- Deploy to Heroku
Your app was successfully deployed
You may still see a runtime error. See Issues below.
You can start the app with Open app button (top right corner)
# View files on Heroku
heroku run bash --app lct-sisters
dir
# Issues
If your build fails, the Deploy page (or the build log details page) will help you figure out the problem.
Pay attention to the config file challenge noted above.
If your app fails to start, you can view the heroku log files from the VS Code Terminal with:
heroku logs --tail -a lct-sisters
# Support
Contact LCT-Sisters lead dev mailto:mcorning@soteriaInstitute.org for help. or appeal to the LCT-Sisters Dev Community.