New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross Platform Compatibility #1113
Open
lhunath
wants to merge
9
commits into
Countly:master
Choose a base branch
from
lhunath:freebsd
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Remove sudo and --unsafe-perms from local npm install; running these as root is unnecessary. FreeBSD rc start-up scripts. Patched version of node-time that works on FreeBSD & updates some deprecated node API. Remove package-lock.json from the repository - these are local files. Update apn nan to bring it in-line with core & improved node version support. Fixes to build apn on FreeBSD & with a locally installed libnghttp2. Note: puppeteer cannot download & install chrome on FreeBSD so you need to install it locally and run npm install with: PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true PUPPETEER_EXECUTABLE_PATH=/usr/local/bin/chrome npm install
Don't assume bash is in /bin Don't assume bind address is 127.0.0.1 Logs need to be in countly's log dir to be found by server plugin Use sudo to run countly script Cross-platform ntpq & stat usage fixes Build against local libnghttp2
Here is an overview of what got changed by this pull request: Issues
======
- Added 1
See the complete overview on Codacy |
ar2rsawseen
reviewed
Jan 25, 2020
@@ -3,6 +3,7 @@ module.exports = function(grunt) { | |||
grunt.initConfig({ | |||
eslint: { | |||
options: { | |||
fix: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue found: Mixed spaces and tabs.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NOTE: This is not intended to be merged into master as-is. It's a starting point to indicate what's necessary to make Countly run on FreeBSD.
REMAINING TASKS:
IN THIS COMMIT:
BUG FIXED: uninitialized local structs lead to EAI_BADHINTS when connecting to APNs.
BUG FIXED: missing select() after connect() lead to write() before complete handshake when connecting to APNs.
Replace assumption of 127.0.0.1 as host address with configured address where possible.
Call bash using /usr/bin/env which is in a reliable location cross-platform - bash is not always in /bin.
Remove sudo and --unsafe-perms from local npm install; running these as root is unnecessary.
FreeBSD rc start-up scripts.
Patched version of node-time that works on FreeBSD & updates some deprecated node API.
Remove package-lock.json from the repository - these are local files.
Update apn nan to bring it in-line with core & improved node version support.
Fixes to build apn on FreeBSD.
Build against repository-local libnghttp2.
NOTE:
puppeteer cannot download & install Chromium on FreeBSD so you'll need to install it locally (pkg install chromium) and run npm install as:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true PUPPETEER_EXECUTABLE_PATH=/usr/local/bin/chrome npm install