Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

update for el7 build

Mike McGann89b4bb56167a
diff --git a/.gitignore b/.gitignore
index 198c8c839..d1fb4f962 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,7 +15,7 @@ python
.settings
.pydevproject
.DS_Store
-bitly_config.py*
+bitly.json
tools
*~
*.swp
diff --git a/package.json b/package.json
index 6dffd115d..14b1bb439 100644
--- a/package.json
+++ b/package.json
@@ -34,8 +34,8 @@
"build:prod": "cross-env NODE_ENV=production webpack",
"build:tests": "cross-env NODE_ENV=testing webpack",
"clean": "node ./tasks/clean.js",
- "dist": "NODE_ENV=production npm run build && node ./tasks/dist.js",
- "dist:dev": "NODE_ENV=development npm run build && node ./tasks/dist.js",
+ "dist": "npm run clean && npm run build:config && npm run build:prod && node ./tasks/dist.js",
+ "dist:dev": "npm run clean && npm run build:config && npm run build:dev && node ./tasks/dist.js",
"distclean": "npm run clean && node ./tasks/distclean.js",
"e2e": "run-s --continue-on-error --silent e2e:*",
"e2e:chrome": "nightwatch -e chrome",
diff --git a/rpm/httpd.conf b/rpm/httpd.conf
index fedf9ee31..b5eea25de 100644
--- a/rpm/httpd.conf
+++ b/rpm/httpd.conf
@@ -1,11 +1,9 @@
-Alias /labs/worldview /usr/share/worldview/web
+Alias /worldview /usr/share/worldview/web
AddHandler cgi-script .cgi
<Directory /usr/share/worldview/web>
- AllowOverride All
- Order allow,deny
- Allow from all
+ Require all granted
</Directory>
AddHandler cgi-script .cgi
diff --git a/rpm/worldview.spec b/rpm/worldview.spec
index 39f3d9244..b4ee9e08c 100644
--- a/rpm/worldview.spec
+++ b/rpm/worldview.spec
@@ -1,10 +1,10 @@
-Name: @WORLDVIEW@
+Name: worldview
Version: @BUILD_VERSION@
Release: 1.@BUILD_NUMBER@%{?dist}
Summary: Browse full-resolution, near real-time satellite imagery.
License: NASA-1.3
URL: http://earthdata.nasa.gov
+Source0: worldview.tar.gz
Source1: httpd.conf
Source2: bitly.json
BuildArch: noarch
@@ -56,14 +56,14 @@ rm -rf %{buildroot}
%post
if [ $1 -gt 0 ] ; then
- if /sbin/service httpd status >/dev/null ; then
- /sbin/service httpd reload
+ if /bin/systemctl show httpd.service | grep ActiveState=active >/dev/null ; then
+ /bin/systemctl reload httpd.service
fi
fi
%postun
if [ $1 -eq 0 ] ; then
- if /sbin/service httpd status >/dev/null ; then
- /sbin/service httpd reload
+ if /bin/systemctl show httpd.service | grep ActiveState=active >/dev/null ; then
+ /bin/systemctl reload httpd.service
fi
fi