You are viewing an old version of this page. View the current version.
Compare with Current
View Version History
Version 1
Current »
Bitbucket Repository: https://bitbucket.org/fleetph/fleet-forms/src/master/
Requirements
Node JS 10+
Firebase CLI
NPM/Yarn
Firebase Console Access
Bitbucket Access
Set up ssh with Bitbucket if you haven’t yet. Visit the following link: Bitbucket SSH Setup
Clone the repo
git clone git@bitbucket.org:fleetph/fleet-forms.git
Install dependencies.
Run development server.
Development of API - the web will not hot-reload
Development of Web - web will hot-reload but you will have to pass dummy data to the components
* suggestion for future developers, use concurrently to run web and API server simultaneously.
Deployment for Beta environment - Nexus2
Login to the server using the following command
ssh ctodev@beta.ctoglobal.co
This will prompt you to enter the password. (ask the administrator or your team lead for the password)
Note: I recommend using snowflakes ssh manager. https://github.com/subhra74/snowflake
Once logged in. Navigate to the apps folder.
cd apps
Then navigate to fleet-forms
cd fleet-forms
checkout to the branch that you want to deploy
git checkout beta-branch-name
Update the branch
git pull
install dependencies
yarn install
Build the project
yarn beta:build
Restart Fleet-forms server process
pm2 restart fleet-forms
Check your deployment @ NEXUS 2
Deployment to Staging environment - Solutions PH
Ask our system administrator to have your IP whitelisted from the server.
Login to the server using the following command
This will prompt you to enter the password. (ask the administrator or your team lead for the password)
Note: I recommend using snowflakes ssh manager. https://github.com/subhra74/snowflake
If you’re not whitelisted, this part right here will fail even if you enter the correct password.
Once logged in. Navigate to the apps folder.
cd apps
Navigate to the staging folder
cd staging
Then navigate to fleet-forms
cd fleet-forms
Check out to the master branch. We only deploy the master branch to staging.
git checkout master
Update the branch
git pull origin master
Install dependencies
yarn install
Build the project
yarn staging:build
Restart Fleet-forms server process
pm2 restart fleet-forms:staging
Check your deployment @ https://solutions.fleet.ph:5053/forms
Deployment to Production environment - Solutions PH
Ask our system administrator to have your IP whitelisted from the server.
Login to the server using the following command
This will prompt you to enter the password. (ask the administrator or your team lead for the password)
Note: I recommend using snowflakes ssh manager. https://github.com/subhra74/snowflake
If you’re not whitelisted, this part right here will fail even if you enter the correct password.
check the current version of production
cd ~/apps/production/fleet-forms && git rev-parse --abbrev-ref HEAD
run deployment script. increment the last version from step 4. This will deploy from master branch then create a release version. *1.2 is just a sample incremented version
sh ~/deployments/prod.sh fleet-forms 1.2 fleet-forms
Check your deployment @ https://solutions.fleet.ph:5055/forms