Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Orbit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Applications
Orbit
Commits
a6f2c0d4
Verified
Commit
a6f2c0d4
authored
5 years ago
by
Jean-Baptiste Pasquier
Browse files
Options
Downloads
Patches
Plain Diff
fix: staging & prod makefile
parent
184940b1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+8
-9
8 additions, 9 deletions
Makefile
with
8 additions
and
9 deletions
Makefile
+
8
−
9
View file @
a6f2c0d4
...
@@ -7,13 +7,9 @@ SCRIPT_DEST := $(SCRIPT_SRC:src/%=$(DIST_DIR)/%)
...
@@ -7,13 +7,9 @@ SCRIPT_DEST := $(SCRIPT_SRC:src/%=$(DIST_DIR)/%)
default
:
build
default
:
build
clean
:
clean
:
git clean
-fXd
-e
!
src/config.
pug
git clean
-fXd
-e
!
src/config.
json
install
:
node_modules copy_lib copy_samples submodules
install
:
node_modules copy_lib copy_samples
submodules
:
git submodule init
git submodule update
--recursive
--remote
build
:
$(DIST_DIR)/index.html $(DIST_DIR)/styles/index.css $(SCRIPT_DEST)
build
:
$(DIST_DIR)/index.html $(DIST_DIR)/styles/index.css $(SCRIPT_DEST)
...
@@ -74,6 +70,9 @@ $(DIST_DIR)/%.js: src/%.js .babelrc
...
@@ -74,6 +70,9 @@ $(DIST_DIR)/%.js: src/%.js .babelrc
@
mkdir
-p
$(
dir
$@
)
@
mkdir
-p
$(
dir
$@
)
@
node_modules/.bin/babel
$<
--out-file
$@
--source-maps
||
touch
$@
@
node_modules/.bin/babel
$<
--out-file
$@
--source-maps
||
touch
$@
buildstaging
:
build
$(
MAKE
)
$(
DIST_DIR
)
/index.staging.html
buildprod
:
build
buildprod
:
build
$(
MAKE
)
$(
DIST_DIR
)
/index.prod.html
$(
MAKE
)
$(
DIST_DIR
)
/index.prod.html
...
@@ -87,9 +86,9 @@ sync: buildstaging
...
@@ -87,9 +86,9 @@ sync: buildstaging
rsync
--no-R
--no-implied-dirs
www/index.staging.html staging-app@ssh-staging-app.happy-dev.fr:~/staging-app.happy-dev.fr/index.html
rsync
--no-R
--no-implied-dirs
www/index.staging.html staging-app@ssh-staging-app.happy-dev.fr:~/staging-app.happy-dev.fr/index.html
rsync
-v
www/.htaccess staging-app@ssh-staging-app.happy-dev.fr:~/staging-app.happy-dev.fr/
rsync
-v
www/.htaccess staging-app@ssh-staging-app.happy-dev.fr:~/staging-app.happy-dev.fr/
sync
-
prod
:
buildprod
syncprod
:
buildprod
rsync
-rv
www/
*
alpha@ssh-alpha.happy-dev.fr:~/
alpha.happy-dev.fr
/
--exclude
=
www/index.html
--exclude
=
www/index.prod.html
--exclude
=
www/index.staging.html
rsync
-rv
www/
*
alpha@ssh-alpha.happy-dev.fr:~/
www
/
--exclude
=
www/index.html
--exclude
=
www/index.prod.html
--exclude
=
www/index.staging.html
rsync
--no-R
--no-implied-dirs
www/index.prod.html alpha@ssh-alpha.happy-dev.fr:~/www/index.html
rsync
--no-R
--no-implied-dirs
www/index.prod.html alpha@ssh-alpha.happy-dev.fr:~/www/index.html
rsync
-v
www/.htaccess alpha@ssh-alpha.happy-dev.fr:~/www/
rsync
-v
www/.htaccess alpha@ssh-alpha.happy-dev.fr:~/www/
.PHONY
:
default install submodules copy_lib copy_samples build watch serve clean sync buildprod pull deploy
.PHONY
:
default install copy_lib copy_samples build watch serve clean sync syncprod buildstaging buildprod pull deploy
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment