ef4 / ember-cli-deploy-git Goto Github PK
View Code? Open in Web Editor NEWember-cli-deploy plugin for uploading your built app to Git.
License: MIT License
ember-cli-deploy plugin for uploading your built app to Git.
License: MIT License
I have a brand new app using embroider for builds, and I'm trying to deploy with ember-cli-deploy-git. Following the instructions in the README, I ran into this error:
Error: Could not find app javascript: "/assets/docs.js" in index.html. Found the following instead:
- /event-perk-grid/assets/vendor.js
- /event-perk-grid/assets/docs.js
For more information about this error: https://github.com/thoov/stitch/wiki/Could-not-find-asset-in-entry-file-error-help
After a lot of hand-wringing, I figured out that I need a trailing slash in my rootURL
.
Maybe the docs should suggest ENV.rootURL = '/your-repo-name/';
instead of ENV.rootURL = '/your-repo-name';
? I'd be happy to PR it if so.
With #14 landed to allow simple deploys into different directories in the target branch, I wanted to pick your brain on a question that arises as we start thinking ahead to more complex version management in ember-cli-addon-docs.
Suppose after deploying a build into a particular subdirectory, we want to update some kind of manifest of available versions in the root of the branch. Today, because staging, committing, and pushing the files all occurs in a single step, there's no opportunity for other deploy plugins to make such tweaks. I could see three approaches for enabling this:
Do you have any thoughts on which of these paths might be a good way forward, or whether there's a better option I'm not considering? Thanks!
Thanks for contributing this plugin to the ecosystem! To make composing plugins as easy as possible, we're encouraging plugin authors to conform to a README format that includes some key sections that are missing from your README. You can see a thorough example of READMEs in the preferred format at https://github.com/ember-cli-deploy/ember-cli-deploy-redis and https://github.com/ember-cli-deploy/ember-cli-deploy-json-config.
In particular, it would be great to see your README gain the "ember-cli-deploy Hooks Implemented", "Prerequisites", and "Plugins known to work well with this one" sections.
Thanks a lot for this plugin, it worked out-of-the-box for me, which is amazing given I’m still very new to Ember 👏
I wonder if we could add options so that the deploy would add a CNAME file with a custom domain, and optionally a 404.html
which would be the same as index.html
so that we don’t need the ENV.locationType = 'hash';
setting. It’s somewhat of a hack because the server responds with 404 status, but user’s don’t care, the app will still show
Happy to help with this if you point me to the right places. Or maybe there is a workaround for what I need? I’d greatly appreciate your help. Thanks!
Reproduction App: https://github.com/alexdiliberto/deploy-dummy-app/commits/gh-pages
ember deploy production
. Looks good.ember deploy production
$ git checkout gh-pages
fatal: 'gh-pages' is already checked out at '/private/tmp/deploy'
EDIT: Ok looks like the changes do propagate but it just takes time...I checked again about 15 minutes later (didn't check but probably just a small caching issue). But the gh-pages branch error still persists and you can't switch to that branch
Getting this error pretty frequently. Restarting my computer fixes it.
Error: git push [email protected]:jeffdaley/camp-pain.git gh-pages exited with nonzero status
Error: git push [email protected]:jeffdaley/camp-pain.git gh-pages exited with nonzero status
at ChildProcess.<anonymous> (/Users/jeffdaley/Code/camp-pain/node_modules/ember-cli-deploy-git/lib/run.js:17:19)
at ChildProcess.emit (events.js:315:20)
at ChildProcess.EventEmitter.emit (domain.js:482:12)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)Pipeline aborted
Thanks for looking into it!
[email protected], currently used by:
* [email protected] (Dormant)
@ef4 are there any plans to update to babel 7?
I followed the setup instructions to the letter. When I try to deploy I receive this error...
λ ember deploy production
DEPRECATION: ember-cli-babel 5.x has been deprecated. Please upgrade to at least ember-cli-babel 6.6. Version 5.2.8 located: covid-azores -> ember-cli-deploy-github-pages -> ember-cli-babel
Deploying [>------] 14% [plugin: github-pages -> willDeploy]DEPRECATION: ember-cli-babel 5.x has been deprecated. Please upgrade to at least ember-cli-babel 6.6. Version 5.2.8 located: C:\Users\Pete\dev\covid-azores\node_modules\ember-cli-deploy-github-pages\node_modules\ember-cli-babel
WARNING: You have not included `ember-cli-shims` in your project's `bower.json` or `package.json`. This only works if you provide an alternative yourself and unset `app.vendorFiles['app-shims.js']`.
WARNING: Option "nodeWorker" is deprecated since [email protected]. Please use "workerType" instead.
cleaning up...
Deploying [==>----] 43% [plugin: git -> prepare]fatal: 'gh-pages' is already checked out at 'C:/Users/Pete/dev/deploy-covid-azores'
Error: Command failed: git checkout gh-pages
fatal: 'gh-pages' is already checked out at 'C:/Users/Pete/dev/deploy-covid-azores'
Error: Command failed: git checkout gh-pages
fatal: 'gh-pages' is already checked out at 'C:/Users/Pete/dev/deploy-covid-azores'
at checkExecSyncError (child_process.js:630:11)
at execSync (child_process.js:666:15)
at Command.execSync (C:\Users\Pete\dev\covid-azores\node_modules\gitty\lib\command.js:52:10)
at Repository.checkoutSync (C:\Users\Pete\dev\covid-azores\node_modules\gitty\lib\repository.js:432:7)
at Class.prepare (C:\Users\Pete\dev\covid-azores\node_modules\ember-cli-deploy-github-pages\index.js:72:14)
at Object.fn (C:\Users\Pete\dev\covid-azores\node_modules\ember-cli-deploy\lib\tasks\pipeline.js:93:21)
at Pipeline._notifyPipelinePluginHookExecution (C:\Users\Pete\dev\covid-azores\node_modules\ember-cli-deploy\lib\models\pipeline.js:173:19)
at tryCatch (C:\Users\Pete\dev\covid-azores\node_modules\rsvp\dist\rsvp.js:525:12)
at invokeCallback (C:\Users\Pete\dev\covid-azores\node_modules\rsvp\dist\rsvp.js:538:13)
at publish (C:\Users\Pete\dev\covid-azores\node_modules\rsvp\dist\rsvp.js:508:7)
at flush (C:\Users\Pete\dev\covid-azores\node_modules\rsvp\dist\rsvp.js:2415:5)
at processTicksAndRejections (internal/process/task_queues.js:79:11)Pipeline aborted
Hello,
ember-addon section must be put in ember section from package.json :
"ember": {
"edition": "octane",
"ember-addon": {
"configPath": "wayto/config",
"rootURL": "https://user.github.io/repository-name"
}
}
Is it the good way ?
Does the doc need update ?
Thanks,
Eric
Running into the following when trying to deploy using ember deploy production
:
Deploying [===>----] 50% [plugin: git -> prepare]Error: git reset --hard exited with nonzero status
at ChildProcess.<anonymous> (/home/vagrant/projects/cell-deploy/node_modules/ember-cli-deploy-git/lib/run.js:19:19)
Error: git reset --hard exited with nonzero status
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
Pipeline aborted
tracking issue.
can be stolen from https://github.com/poetic/ember-cli-github-pages
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.